]> git.meshlink.io Git - meshlink/commitdiff
Ignore SIGCHLD.
authorIvo Timmermans <ivo@lychnis.net>
Tue, 28 Mar 2000 19:16:27 +0000 (19:16 +0000)
committerIvo Timmermans <ivo@lychnis.net>
Tue, 28 Mar 2000 19:16:27 +0000 (19:16 +0000)
src/tincd.c

index 0da27a38d49f43b6403649b89ceeeaffc2fc34e1..809e6068491d071725a7811028303481486d9c1a 100644 (file)
@@ -344,10 +344,7 @@ main(int argc, char **argv, char **envp)
   setup_signals();
 
   if(detach())
-    {
-      kill(ppid, SIGTERM);
-      exit(0);
-    }
+    exit(0);
 
   if(security_init())
     return 1;
@@ -463,6 +460,7 @@ setup_signals(void)
     signal(SIGINT, sigint_handler);
   signal(SIGUSR1, sigusr1_handler);
   signal(SIGUSR2, sigusr2_handler);
+  signal(SIGCHLD, SIG_IGN);
 }
 
 RETSIGTYPE parent_exit(int a)