From 3baaff251f39c2610c2d2b5bfdac4158dbd1d331 Mon Sep 17 00:00:00 2001 From: andersen Date: Wed, 25 Sep 2002 15:08:40 +0000 Subject: 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 git-svn-id: svn://busybox.net/trunk/busybox@5592 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- init/init.c | 1 - 1 file changed, 1 deletion(-) 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... */ -- cgit v1.2.3-55-g6feb