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

ruby-changes:28544

From: akr <ko1@a...>
Date: Tue, 7 May 2013 12:11:29 +0900 (JST)
Subject: [ruby-changes:28544] akr:r40596 (trunk): * ext/socket/extconf.rb: Set close_fds false for Cygwin.

akr	2013-05-07 12:10:46 +0900 (Tue, 07 May 2013)

  New Revision: 40596

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

  Log:
    * ext/socket/extconf.rb: Set close_fds false for Cygwin.
      Cygwin doesn't support fd passing.
      This enables socket extension library cross-compilable by default.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/extconf.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40595)
+++ ChangeLog	(revision 40596)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue May  7 12:09:29 2013  Tanaka Akira  <akr@f...>
+
+	* ext/socket/extconf.rb: Set close_fds false for Cygwin.
+	  Cygwin doesn't support fd passing.
+	  This enables socket extension library cross-compilable by default.
+
 Tue May  7 12:07:35 2013  Tanaka Akira  <akr@f...>
 
 	* pack.c (swap32): Don't redefine it if it is already defined.
Index: ext/socket/extconf.rb
===================================================================
--- ext/socket/extconf.rb	(revision 40595)
+++ ext/socket/extconf.rb	(revision 40596)
@@ -253,6 +253,10 @@ def test_recvmsg_with_msg_peek_creates_f https://github.com/ruby/ruby/blob/trunk/ext/socket/extconf.rb#L253
     # [ruby-dev:44189]
     # http://bugs.ruby-lang.org/issues/5075
     close_fds = false
+  when /cygwin/
+    # Cygwin doesn't support fd passing.
+    # http://cygwin.com/ml/cygwin/2003-09/msg01808.html
+    close_fds = false
   else
     close_fds = nil
   end

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

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