From: Eric Andersen Date: Wed, 25 Sep 2002 15:08:40 +0000 (-0000) Subject: Ignoring SIGCHLD causes a race leading to the occasional hang of init X-Git-Tag: 0_60_5~58 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a920871c3ae0f83ccf9be4c314448cece719b3df;p=oweals%2Fbusybox.git Ignoring SIGCHLD causes a race leading to the occasional hang of init when init will wait() on itself in waitfor() when the child exits before init is scheduled to run. Letting init hang is very seriously bad. -Erik --- diff --git a/init/init.c b/init/init.c index ab2d0ea91..989babff7 100644 --- a/init/init.c +++ b/init/init.c @@ -1063,7 +1063,6 @@ extern int init_main(int argc, char **argv) signal(SIGCONT, cont_handler); signal(SIGSTOP, stop_handler); signal(SIGTSTP, stop_handler); - signal(SIGCHLD, SIG_IGN); /* Turn off rebooting via CTL-ALT-DEL -- we get a * SIGINT on CAD so we can shut things down gracefully... */