Enable SIGCHLD to stop childs complaining to SIG_IGN of it.

It helps perl f.e.

Obtained from:	OpenBSD do_command.c v1.7
This commit is contained in:
Andrey A. Chernov 2000-07-01 21:25:33 +00:00
parent d81584ae91
commit 5e4a74ec02
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62359

View File

@ -109,7 +109,7 @@ child_process(e, u)
* use wait() explictly. so we have to disable the signal (which * use wait() explictly. so we have to disable the signal (which
* was inherited from the parent). * was inherited from the parent).
*/ */
(void) signal(SIGCHLD, SIG_IGN); (void) signal(SIGCHLD, SIG_DFL);
#else #else
/* on system-V systems, we are ignoring SIGCLD. we have to stop /* on system-V systems, we are ignoring SIGCLD. we have to stop
* ignoring it now or the wait() in cron_pclose() won't work. * ignoring it now or the wait() in cron_pclose() won't work.