Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
On Solaris I use the preap command but I can't find an equivalent command on Linux.
I can't kill the process because it's already dead and by it's nature the parent process is dead, so I can't kill that.
Assume that kill -1, -9 don't work.
I've searched the forums but have yet to find a method of removing it from the process table without compiling any C.
Is there a Linux command or something I set in /proc/<pid> to remove the process.
well by its nature the parent process is not necessarily dead at all, what is its parent? If it's gone then it would be re-parented up as far as the init process.
If the parent process was alive then I would send a SIGCHILD to the parent which would reap it's children however this is not an option in my case because the ppid is 1.
Although there is little impact, an extra process slot is used up, I still want to remove the zombie process.
Is it technically possible to do that under those circumstances without rebooting on Linux ?
Is it possible to attach kdb to init and send a waitpid() function. Would this free up the process slot ? A zombie may not hurt the system but I am curious to find a workable method.
Remember that init is now the ppid.
Where 23300 is the zombie pid slot. I use this as an example, however I have no practical experience with kgdb so the commands won't work.
I am not even sure if you can run kdb and activating it witin the kernel without stopping kernel execution from the same host.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.