Patch from Thomas Gleixner <tglx@linutronix.de> to do
authorEric Andersen <andersen@codepoet.org>
Thu, 12 Sep 2002 15:44:53 +0000 (15:44 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 12 Sep 2002 15:44:53 +0000 (15:44 -0000)
automatic child reaping to avoid zombies

init/init.c

index 7ab50cffee6bc7d54abeef02ce1dae4f50301ba2..013f55c68fe5dac6bb01404b647d35343c871c76 100644 (file)
@@ -1061,6 +1061,7 @@ 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... */