summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-07-01 21:25:33 +0000
committerache <ache@FreeBSD.org>2000-07-01 21:25:33 +0000
commit018c31c01e2a233502dd2ec81c18db6e7fdc151a (patch)
tree05a5945ed763e3b6f86048178721b04d837e753f /usr.sbin/cron
parent1f43692f55a59ca64a40d1fdb79589d7bb091952 (diff)
downloadFreeBSD-src-018c31c01e2a233502dd2ec81c18db6e7fdc151a.zip
FreeBSD-src-018c31c01e2a233502dd2ec81c18db6e7fdc151a.tar.gz
Enable SIGCHLD to stop childs complaining to SIG_IGN of it.
It helps perl f.e. Obtained from: OpenBSD do_command.c v1.7
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r--usr.sbin/cron/cron/do_command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/cron/cron/do_command.c b/usr.sbin/cron/cron/do_command.c
index 4bac47e..009d21b 100644
--- a/usr.sbin/cron/cron/do_command.c
+++ b/usr.sbin/cron/cron/do_command.c
@@ -109,7 +109,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.
OpenPOWER on IntegriCloud