From a920871c3ae0f83ccf9be4c314448cece719b3df Mon Sep 17 00:00:00 2001 From: Eric 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 --- init/init.c | 1 - 1 file changed, 1 deletion(-) (limited to 'init') 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