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:
ache 2000-07-01 21:25:33 +00:00
parent 1f43692f55
commit 018c31c01e

View File

@ -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.