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 ef4e54d..49ea52d 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) {