diff options
author | joerg <joerg@FreeBSD.org> | 2000-02-29 08:02:29 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2000-02-29 08:02:29 +0000 |
commit | 7d18be033d069b6ffe6f8be215040b2108981cef (patch) | |
tree | 5aa03aacc73e1d0f5b0eddb0d179522a1c790b47 /usr.sbin/syslogd/syslogd.c | |
parent | 72dbae65b9b2414cd7c6988316a421a03527ed12 (diff) | |
download | FreeBSD-src-7d18be033d069b6ffe6f8be215040b2108981cef.zip FreeBSD-src-7d18be033d069b6ffe6f8be215040b2108981cef.tar.gz |
Fix a nit in my previous commit: make SIGHUP and SIGCHLD restartable
as they ought to be. The description of SA_RESTART was a little
unobvious to me in the man page, so i missed it. Thanks to Bruce for
spotting this.
Submitted by: bde
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 1ef6f29..0727b2b 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -382,7 +382,7 @@ main(argc, argv) sigaddset(&mask, SIGHUP); sact.sa_handler = reapchild; sact.sa_mask = mask; - sact.sa_flags = 0; + sact.sa_flags = SA_RESTART; (void)sigaction(SIGCHLD, &sact, NULL); (void)signal(SIGALRM, domark); (void)signal(SIGPIPE, SIG_IGN); /* We'll catch EPIPE instead. */ @@ -460,7 +460,7 @@ main(argc, argv) sigaddset(&mask, SIGCHLD); sact.sa_handler = init; sact.sa_mask = mask; - sact.sa_flags = 0; + sact.sa_flags = SA_RESTART; (void)sigaction(SIGHUP, &sact, NULL); tvp = &tv; |