get rid of zombies
authorAndrew Tridgell <tridge@samba.org>
Sun, 17 Aug 2008 23:46:51 +0000 (09:46 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 17 Aug 2008 23:46:51 +0000 (09:46 +1000)
hacksmd.c

index 442d9e787840b4c5386bbf2a9957e1d276c08049..8333f8a2b1c6354cfc669b718bcf025f05882d00 100644 (file)
--- a/hacksmd.c
+++ b/hacksmd.c
@@ -570,6 +570,8 @@ int main(int argc, char * const argv[])
        argv += optind;
        argc -= optind;
 
+       signal(SIGCHLD, SIG_IGN);
+
        signal(SIGTERM, hsm_term_handler);
        signal(SIGINT, hsm_term_handler);