From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e759ab5c7decd9a4 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-09-09 06:00:08 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-proxy.baileynm.com!web.nmti.com!not-for-mail From: peter@abbnm.com (Peter da Silva) Newsgroups: comp.unix.tru64 Subject: Re: defunct ? Date: 9 Sep 2001 12:45:28 GMT Organization: ABB Network Management Message-ID: <9nfo98$m5h@web.nmti.com> References: <9ne7j9$3ig$1@capella.worldonline.fr> NNTP-Posting-Host: grendel.eng.baileynm.com Xref: archiver1.google.com comp.unix.tru64:4760 In article <9ne7j9$3ig$1@capella.worldonline.fr>, @nnib wrote: > when i make a ps -Af, i can see some process with the label " defunct " > > What does it mean ? When you run a program in UNIX you eventually get back a return code from the process that it's running in. This return code indicates whether the process succeeded or failed, whether it exited normally or was terminated by the OS for some reason, and so on. If the process terminates before this code has been returned, it leaves a little "stub" in the process table that acts as a placeholder, keeping the return code around until the parent process can examine it. These are technically called "zombies". They are neither dead nor alive, but exist in an undead state until they're buried. Sometimes the parent process fails to bury its zombie children, and they hang around. The long term solution is to fix the parent so that it cleans up after its dead children, or tells the operating system that it's not interested in their return codes. Short term, if you kill the parent all the zombies will be dragged along to their final resting place (actually, they will be adopted by the master daemon, init, which will bury them). Diabolical, eh? > Can I kill them manually ? You can't kill the undead. They're already dead! You need to fix and/or kill the guilty parent. -- `-_-' In hoc signo hack, Peter da Silva. 'U` "A well-rounded geek should be able to geek about anything." -- nicolai@esperi.org Disclaimer: WWFD?