DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2008
neurosis neurosis is offline
Fdisk Soldier
 
Join Date: Jul 2008
Posts: 69
Thanked 0 Times in 0 Posts
Default <defunct> pid?

I am starting to get a build up of these processes. Is there any way to tell whats causing them or how to get rid of them?


Code:
77168  v0  Z      0:06.30 <defunct>
79174  v0  Z      0:11.64 <defunct>
88333  v0  Z      0:18.63 <defunct>
25197  v0  Z      0:07.95 <defunct>
63883  v0  Z      0:04.74 <defunct>
63936  v0  Z      0:06.13 <defunct>
Reply With Quote
  #2   (View Single Post)  
Old 6th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

kill pid, where pid is process id
Reply With Quote
  #3   (View Single Post)  
Old 6th November 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

the process state of "Z" in the ps o/p indicates that its a zombie process.

this happens when a process terminates but its parent process hasn't wait(2)'ed for it to get its termination status.

you can find out the parent process responsible for the zombies: ps -o ppid,pid,stat,comm

> how to get rid of them?

you don't need to do anything. they will disappear when the parent waits for it or else when the parent terminates.
Alternatively, you can try sending SIGCHLD to the parent.

> whats causing them

could be a bug in the program.

Last edited by ephemera; 6th November 2008 at 05:26 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick