LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-25-2009, 05:47 PM   #1
shogun1234
Member
 
Registered: May 2004
Posts: 226

Rep: Reputation: 15
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]
 
Old 04-25-2009, 05:59 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
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!

Last edited by jhwilliams; 04-25-2009 at 06:00 PM.
 
Old 04-25-2009, 10:55 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,676
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
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.
 
Old 04-26-2009, 11:11 AM   #4
shogun1234
Member
 
Registered: May 2004
Posts: 226

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jhwilliams View Post
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.

Last edited by shogun1234; 04-26-2009 at 11:17 AM.
 
Old 04-26-2009, 11:14 AM   #5
shogun1234
Member
 
Registered: May 2004
Posts: 226

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sundialsvcs View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Defunct Process - Need help asterix24 Linux - Software 1 02-24-2009 10:55 PM
Defunct Process info? bahama Linux - Software 2 09-02-2007 04:22 PM
how to tell exactly when a process went defunct beeblequix Linux - Enterprise 1 11-21-2005 11:49 PM
<defunct>ed process bratch Linux - Software 5 04-28-2005 04:55 PM
SYSLOG-NG <defunct> process icw_sec Linux - Software 0 04-26-2004 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration