acpid: prevent creation of zombies
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 18 Apr 2009 11:35:16 +0000 (11:35 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 18 Apr 2009 11:35:16 +0000 (11:35 -0000)
util-linux/acpid.c

index ef4e54d5d0e41d3f75af0c6cfdfb989b1b857f54..49ea52d53218e4356b6b785a2239554ff822a350 100644 (file)
@@ -78,8 +78,8 @@ int acpid_main(int argc, char **argv)
        // goto configuration directory
        xchdir(opt_conf);
 
-//     // setup signals
-//     bb_signals(BB_FATAL_SIGS, record_signo);
+       // prevent zombies
+       signal(SIGCHLD, SIG_IGN);
 
        // no explicit evdev files given? -> use proc event interface
        if (!*argv) {