[前][次][番号順一覧][スレッド一覧]

ruby-changes:21557

From: naruse <ko1@a...>
Date: Tue, 1 Nov 2011 21:44:22 +0900 (JST)
Subject: [ruby-changes:21557] naruse:r33606 (trunk): * io.c (rb_cloexec_pipe): remove workaround of r33587.

naruse	2011-11-01 21:43:47 +0900 (Tue, 01 Nov 2011)

  New Revision: 33606

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33606

  Log:
    * 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

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33605)
+++ ChangeLog	(revision 33606)
@@ -1,3 +1,9 @@
+Tue Nov  1 21:39:00 2011  NARUSE, Yui  <naruse@r...>
+
+	* 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@f...>
 
 	* io.c (rb_io_reopen): call rb_fd_fix_cloexec instead of
Index: io.c
===================================================================
--- io.c	(revision 33605)
+++ io.c	(revision 33606)
@@ -253,14 +253,8 @@
     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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]