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:
parent
d81584ae91
commit
5e4a74ec02
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62359
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user