summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-06-03 15:36:38 +0000
committermillert <millert@openbsd.org>2000-06-03 15:36:38 +0000
commit5815f23f523edbccaf4522cccfb3a0a7b0a0979b (patch)
tree28980db57d9120786fcc10dbc007a42465bbafd1
parentsync with latest kame doc. pcb issues and net interface issues are updated (diff)
downloadwireguard-openbsd-5815f23f523edbccaf4522cccfb3a0a7b0a0979b.tar.xz
wireguard-openbsd-5815f23f523edbccaf4522cccfb3a0a7b0a0979b.zip
Set SIGCHLD to SIG_DFL not SIG_IGN to prevent "perl -w" from
complaining "Can't ignore signal CHLD, forcing to default". Setting SIGCHLD to SIG_IGN means "don't provide exit status for my children" on some OSes which is not what we want--we just don't want to catch SIGCHLD since our parent does that for us.
-rw-r--r--usr.sbin/cron/do_command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/do_command.c b/usr.sbin/cron/do_command.c
index f9b84bd0d59..d0ca9b82e61 100644
--- a/usr.sbin/cron/do_command.c
+++ b/usr.sbin/cron/do_command.c
@@ -16,7 +16,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char rcsid[] = "$Id: do_command.c,v 1.6 1999/08/28 20:13:13 millert Exp $";
+static char rcsid[] = "$Id: do_command.c,v 1.7 2000/06/03 15:36:38 millert Exp $";
#endif
@@ -107,7 +107,7 @@ child_process(e, u)
* use wait() explictly. so we have to disable the signal (which
* was inherited from the parent).
*/
- (void) signal(SIGCHLD, SIG_IGN);
+ (void) signal(SIGCHLD, SIG_DFL);
#else
/* on system-V systems, we are ignoring SIGCLD. we have to stop
* ignoring it now or the wait() in cron_pclose() won't work.