Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2008
neurosis neurosis is offline
Fdisk Soldier
Join Date: Jul 2008
Posts: 69
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?

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
ISO Quartermaster
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589

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

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

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 02:18 AM.

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