From: peter@abbnm.com (Peter da Silva)
Subject: Re: defunct ?
Date: 9 Sep 2001 12:45:28 GMT [thread overview]
Message-ID: <9nfo98$m5h@web.nmti.com> (raw)
In-Reply-To: 9ne7j9$3ig$1@capella.worldonline.fr
In article <9ne7j9$3ig$1@capella.worldonline.fr>,
@nnib <annibale@ifrance.com> 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?
next prev parent reply other threads:[~2001-09-09 12:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-08 22:56 defunct ? @nnib
2001-09-09 9:09 ` @nnib
2001-09-09 12:45 ` Peter da Silva [this message]
2001-09-09 16:56 ` Newbie JrSysAdmin
2001-09-09 23:26 ` Mark Garrett
2001-09-10 15:37 ` Newbie JrSysAdmin
2001-09-11 10:48 ` Jure Simsic
2001-09-12 22:03 ` Tim Mooney
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox