diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-21 11:11:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-21 11:11:10 +0000 |
commit | ddef263a89c7c1ac2f0cf5f6edfee58aa93c691f (patch) | |
tree | 7584fd745096f4dbd556f7dd028bd4c56263041d /process.c | |
parent | 42cc596402361eced511abe9d51f78fa54818895 (diff) | |
download | ruby-ddef263a89c7c1ac2f0cf5f6edfee58aa93c691f.tar.gz |
process.c: remove cloexec setting
* process.c (rb_fork_internal): remove cloexec setting on pipes
created by rb_cloexec_pipe. patch by normalperson (Eric Wong) at
[ruby-core:56523]. [Bug #8769]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -3389,10 +3389,6 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg, } 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; |