diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-03 01:44:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-03 01:44:05 +0000 |
commit | 3dd092d0cef1e074486a04fc8c8d60350480ae33 (patch) | |
tree | 44791499835cb170eba18ffeb5c0b74be05d55e1 /io.c | |
parent | e382c5dde3a4fd6664f941dedd74515c41ae7618 (diff) |
* io.c (popen_exec): close file descriptors other than standard I/Os.
fixed: [ruby-dev:28924]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -2950,11 +2950,7 @@ popen_exec(void *pp) popen_redirect(p); for (fd = 3; fd < NOFILE; fd++) { -#ifdef FD_CLOEXEC - fcntl(fd, F_SETFL, FD_CLOEXEC); -#else close(fd); -#endif } return rb_exec(&p->exec); } |