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
1_00_stable_10817
Eric Andersen 2002-09-25 15:08:40 +00:00
parent 5a66b640f9
commit a920871c3a
1 changed files with 0 additions and 1 deletions

View File

@ -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... */