Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can you show us the results of ps aux | grep <pid>. Also, can you check that, having killed the parent, that the child process has been adopted by init (its parent process ID should now be 1). You can quickly do this with "ps -o ppid pid".
If the process is in state "D" as opposed to "S", then it is in uninterruptable sleep, usually because of I/O, and it cannot be killed by any means until whatever operation put it in uninterruptable sleep completes. If it's in state "S", kill -9 should've taken care of it, so I'm a bit confused...
The result of ps aux | grep <pid> shows me the same entry for that pid even after killing the child & parent both & the parent id for that child process is 11. Also after killing the process, I had waited for 30 mins but still I see the same entry in ps.
Also the process is in sleeping state & not D state as I cannot show the print screen due to security reasons.
It depends on what the process is waiting for. It will not be cleaned up while it is in an uninterruptable wait.
User memory will be released, but the process header will remain while waiting (and any locked memory for I/O if there is any). This is a zombie state - its dead, but not completely dead.
That is why you were asked for the ps report... it will show what it is waiting for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.