Reset the signal handler in the child
authorJoey Schulze <joey@infodrom.org>
Fri, 25 May 2007 18:47:21 +0000 (18:47 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 25 May 2007 18:47:21 +0000 (18:47 +0000)
syslogd.c

index 9aff4ed..fb4cca2 100644 (file)
--- a/syslogd.c
+++ b/syslogd.c
@@ -950,6 +950,7 @@ int main(argc, argv)
                                 */
                                exit(1);
                        }
+                       signal (SIGTERM, SIG_DFL);
                        num_fds = getdtablesize();
                        for (i= 0; i < num_fds; i++)
                                (void) close(i);