summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--io.c4
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index a8f783ef0f..2e2e356468 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
diff --git a/io.c b/io.c
index 3d0e1632ca..450c39e338 100644
--- a/io.c
+++ b/io.c
@@ -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);
}