Bug #8769 ยป 0001-process.c-rb_fork_internal-remove-cloexec-setting.patch
process.c | ||
---|---|---|
}
|
||
else {
|
||
if (pipe_nocrash(ep, fds)) return -1;
|
||
if (fcntl(ep[1], F_SETFD, FD_CLOEXEC)) {
|
||
preserving_errno((close(ep[0]), close(ep[1])));
|
||
return -1;
|
||
}
|
||
pid = retry_fork(status, ep, chfunc_is_async_signal_safe);
|
||
if (pid < 0)
|
||
return pid;
|