init not processing SIGCHLD during reboot?
Rob Landley
rob at landley.net
Sat Dec 2 14:08:27 PST 2006
On Saturday 02 December 2006 3:35 pm, Paul Smith wrote:
> On Sat, 2006-12-02 at 12:13 -0500, Rob Landley wrote:
>
> > > The loop in init starts any unstarted RESPAWN and ASKFIRST commands,
then
> > > it sleeps for one second, then it does a wait() to sleep until one of
> > > its children dies.
> >
> > The reason init programs want to sit in a wait() loop is so that they can
> > restart things that die. But if all you want to do is reap zombies (such
as
> > during shutdown), set the SIGCHLD handler to SIG_IGNORE.
>
> As I mentioned in one of my earlier emails, this is not portable.
P.S. Not portable to what?
Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery
More information about the busybox
mailing list