aboutsummaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-09-25 15:08:40 +0000
committerEric Andersen <andersen@codepoet.org>2002-09-25 15:08:40 +0000
commita920871c3ae0f83ccf9be4c314448cece719b3df (patch)
tree569d40587716c379dc39f806856f0728f2479f42 /init/init.c
parent5a66b640f963ff48a06e3649a6df76819963508b (diff)
downloadbusybox-w32-a920871c3ae0f83ccf9be4c314448cece719b3df.tar.gz
busybox-w32-a920871c3ae0f83ccf9be4c314448cece719b3df.tar.bz2
busybox-w32-a920871c3ae0f83ccf9be4c314448cece719b3df.zip
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
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c1
1 files changed, 0 insertions, 1 deletions
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)
1063 signal(SIGCONT, cont_handler); 1063 signal(SIGCONT, cont_handler);
1064 signal(SIGSTOP, stop_handler); 1064 signal(SIGSTOP, stop_handler);
1065 signal(SIGTSTP, stop_handler); 1065 signal(SIGTSTP, stop_handler);
1066 signal(SIGCHLD, SIG_IGN);
1067 1066
1068 /* Turn off rebooting via CTL-ALT-DEL -- we get a 1067 /* Turn off rebooting via CTL-ALT-DEL -- we get a
1069 * SIGINT on CAD so we can shut things down gracefully... */ 1068 * SIGINT on CAD so we can shut things down gracefully... */