diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2000-02-29 08:02:29 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2000-02-29 08:02:29 +0000 |
commit | debf48c59c88720e71ee1e20f8bd31d869b0037a (patch) | |
tree | 809ebcadb558a9564406b48aea12cb2444124930 /usr.sbin/syslogd/syslogd.c | |
parent | fe3a7a19411169e38be19a801d36b32a3feef7c1 (diff) | |
download | src-debf48c59c88720e71ee1e20f8bd31d869b0037a.tar.gz src-debf48c59c88720e71ee1e20f8bd31d869b0037a.zip |
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
Notes
Notes:
svn path=/head/; revision=57609
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 1ef6f29ff0d3..0727b2bc2dab 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; |