Re: zombies

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Subject: Re: zombies
Date: Wednesday, March 12, 2008 - 10:53 am

On Wed, Mar 12, 2008 at 09:57:16AM +0100, Otto Moerbeek wrote:

I'd like to add a bit to the above and to Paul de Weerd's comments:

Zombie processes are there to maintain a little info in case the parent
process calls wait() later to retrieve it. Some program designs catch
SIGCHILD or have a thread block on wait*, and in those cases the zombie
lasts such a short time you'll probably never see it in top or ps. Other
designs use non-blocking forms and zombies may stick around long enough
to notice, but then disappear later when the parent makes a pass. If the
parent dies before calling wait, then the zombie is inherited by init
which will take care of it.

So, zombies happen, but the only time they stay around for a long time
is a negligent/misdesigned parent that is still alive but not calling
wait* on the children. The OS can't make a badly written program into a
well written program. So as admin you are stuck restarting the parent
periodically, switching to something else, or bugging the developers to
fix the problem.

--
Darrin Chandler | Phoenix BSD User Group | MetaBUG
dwchandler@stilyagin.com | http://phxbug.org/ | http://metabug.org/
http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
zombies, Lars Noodén, (Wed Mar 12, 4:36 am)
Re: zombies, Liviu Daia, (Wed Mar 12, 6:05 am)
Re: zombies, Hannah Schroeter, (Wed Mar 12, 7:49 am)
Re: zombies, Liviu Daia, (Wed Mar 12, 9:34 am)
Re: zombies, Otto Moerbeek, (Wed Mar 12, 4:57 am)
Re: zombies, Darrin Chandler, (Wed Mar 12, 10:53 am)
Re: zombies, Randal L. Schwartz, (Wed Mar 12, 10:09 am)
Re: zombies, Lars Noodén, (Wed Mar 12, 11:26 am)
Re: zombies, Paul de Weerd, (Wed Mar 12, 4:55 am)
Re: zombies - solved, Lars Noodén, (Wed Mar 12, 5:18 am)
Re: zombies - solved, Gregg Reynolds, (Wed Mar 12, 9:39 am)
Re: zombies - solved, Darrin Chandler, (Wed Mar 12, 10:21 am)
Re: zombies - solved, James Hartley, (Wed Mar 12, 5:34 am)
Re: zombies - solved , Theo de Raadt, (Wed Mar 12, 5:27 am)
Re: zombies - solved, Lars Noodén, (Wed Mar 12, 11:22 am)
Re: zombies - solved, Steve Shockley, (Wed Mar 12, 12:17 pm)
Re: zombies - solved, Pete Vickers, (Wed Mar 12, 12:05 pm)
Re: zombies - solved, Boudewijn Dijkstra, (Wed Mar 12, 12:15 pm)
Re: zombies - solved , Theo de Raadt, (Wed Mar 12, 11:58 am)
Re: zombies - solved, bofh, (Wed Mar 12, 12:19 pm)
Re: zombies - solved, Paul de Weerd, (Wed Mar 12, 3:24 pm)
Re: zombies - solved, Jonathan Weiss, (Wed Mar 12, 12:56 pm)
Re: zombies - solved, Tim Donahue, (Wed Mar 12, 1:01 pm)
Re: zombies - solved, Henning Brauer, (Wed Mar 12, 6:49 am)
Re: zombies - half solved, Lars Noodén, (Wed Mar 12, 4:52 am)