summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-01 12:43:47 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-01 12:43:47 +0000
commitf0bd6396933c38a59167180c03b1ee6c86692932 (patch)
tree7c2e169d373887642035a5767fc961cd865e1c57
parent809006f407147d6788d785e86590a79603110a38 (diff)
* io.c (rb_cloexec_pipe): remove workaround of r33587.
The bug of NetBSD is fixed on Mon Oct 31 21:31:29 UTC 2011. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45545 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--io.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 47b8214d89..de74d4c69f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Nov 1 21:39:00 2011 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_cloexec_pipe): remove workaround of r33587.
+ The bug of NetBSD is fixed on Mon Oct 31 21:31:29 UTC 2011.
+ http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45545
+
Tue Nov 1 19:49:08 2011 Tanaka Akira <akr@fsij.org>
* io.c (rb_io_reopen): call rb_fd_fix_cloexec instead of
diff --git a/io.c b/io.c
index 56fc3f3f7c..ab3f35f3cf 100644
--- a/io.c
+++ b/io.c
@@ -253,14 +253,8 @@ rb_cloexec_pipe(int fildes[2])
static int try_pipe2 = 1;
if (try_pipe2) {
ret = pipe2(fildes, O_CLOEXEC);
-#ifdef __NetBSD__
- /* pipe2 is available since NetBSD 6.0. */
- if (ret > 0)
- return 0;
-#else
if (ret != -1)
return ret;
-#endif
/* pipe2 is available since Linux 2.6.27, glibc 2.9. */
if (errno == ENOSYS) {
try_pipe2 = 0;