[BusyBox] Init does not always reap child processes

Rob Landley rob at landley.net
Fri Jul 29 23:56:33 UTC 2005


On Friday 29 July 2005 10:37, Mike Frysinger wrote:
> On Friday 29 July 2005 11:02 am, Jason Schoon wrote:
> > My fix was to enable SIGCHLD handling while in a wait action, and then
> > disable it again upon leaving the wait action.  The child handler
> > simply does a waitpid() without hanging around.
>
> i thought if you set the handler for SIGCHLD to SIG_IGN the zombies are
> taken care of for you so you dont have to screw around with waitpid ... or
> am i thinking of someone else ?

I'm not sure that works for init.  If a normal process ignores the signal, I'm 
under the impression the child will be reaped by init.  So what happens if 
_init_ ignores the signal...

Almost done fixing up the mount rewrite, but I don't plan to worry about init 
until after 1.0.1-rc2...

Rob



More information about the busybox mailing list