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 | |
parent | e382c5dde3a4fd6664f941dedd74515c41ae7618 (diff) | |
download | ruby-3dd092d0cef1e074486a04fc8c8d60350480ae33.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | io.c | 4 |
2 files changed, 6 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Mon Jul 3 10:44:01 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (popen_exec): close file descriptors other than standard I/Os. + fixed: [ruby-dev:28924] + Mon Jul 3 05:15:29 2006 GOTOU Yuuzou <gotoyuzo@notwork.org> * test/openssl/test_asn1.c: String#[]= doesnt't accept Integer. @@ -26,7 +31,7 @@ Sun Jul 2 18:42:27 2006 Minero Aoki <aamine@loveruby.net> Sun Jul 2 11:22:03 2006 Tanaka Akira <akr@m17n.org> - * io.c (io_reopen): STDOUT.reopen(filename, "w+") didn't work. + * io.c (io_reopen): STDOUT.reopen(filename, "w+") didn't work. (rb_io_reopen): STDOUT.reopen(File.open(filename, "w+")) didn't work. Sat Jul 1 23:55:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org> @@ -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); } |