LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   defunct process (https://www.linuxquestions.org/questions/linux-software-2/defunct-process-721670/)

shogun1234 04-25-2009 05:47 PM

defunct process
 
I search on the internet and on the forum. Many suggest when encountering a defunct process, what to do with it is to kill its parent process. However, in the following case it looks like I have to kill the init process. That means to reboot? Or what to do would be better in dealing with such problem?

Many thanks,

Code:

User  3379    1 47 00:45 ?        02:48:16 [firefox-bin]

jhwilliams 04-25-2009 05:59 PM

Code:

kill -9 3379
or

Code:

killall firefox-bin
I have to do this fairly often because Adobe Flash Player is a piece of garbage.

Don't kill the init process!

sundialsvcs 04-25-2009 10:55 PM

Processes that die sit in a "zombie" state waiting for their parents to "reap" them. This is done specifically so that the parent can reliably obtain final-status information. If the parents do not do this, a certain (but not unlimited) number of defunct processes can sit around for a while.

If the parent process dies, the children are briefly parented to "init," which will reap them.

"init" is a very special process that cannot die. Don't mess with it.

Don't be alarmed about a certain number of defuncts in the process table. They actually do no real harm.

shogun1234 04-26-2009 11:11 AM

Quote:

Originally Posted by jhwilliams (Post 3520843)
Code:

kill -9 3379
or

Code:

killall firefox-bin
I have to do this fairly often because Adobe Flash Player is a piece of garbage.

Don't kill the init process!

That is the problem. When I try to kill the its parent process. The parent process dies, but the zombie process then becomes child process of init; and it won't go away if I issue command e.g `kill -9 9993` where 9993 is the zomebie process I want to kill.

Code:

User  9993  7542  0 Apr26 pts/4    00:00:00 /usr/lib/wine/wine-pthread Setup.exe
Code:

$ kill -9 7542
Code:

$ ps -ef | grep wine
Code:

User  9993    1  0 Apr26 ?        00:00:00 /usr/lib/wine/wine-pthread Setup
If I try e.g. kill -9 9993, the command looks works successfully. But when using `ps -ef | grep ...' command, the process is always there. Is there any way I can exactly kill it (though I think kill -9 is the only way I can do)?

Thanks your help.

shogun1234 04-26-2009 11:14 AM

Quote:

Originally Posted by sundialsvcs (Post 3521011)
Processes that die sit in a "zombie" state waiting for their parents to "reap" them. This is done specifically so that the parent can reliably obtain final-status information. If the parents do not do this, a certain (but not unlimited) number of defunct processes can sit around for a while.

If the parent process dies, the children are briefly parented to "init," which will reap them.

"init" is a very special process that cannot die. Don't mess with it.

Don't be alarmed about a certain number of defuncts in the process table. They actually do no real harm.

But I saw the CPU usage is increasing. And the sound of my laptop becomes loudly. So we don't actually have any way to get rid of that zombie process?


Thanks your reply,

I appreciate it.


All times are GMT -5. The time now is 01:19 PM.