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

ruby-changes:21562

From: akr <ko1@a...>
Date: Wed, 2 Nov 2011 08:18:08 +0900 (JST)
Subject: [ruby-changes:21562] akr:r33611 (trunk, ruby_1_8): * lib/webrick/utils.rb: fix fcntl call.

akr	2011-11-02 08:17:53 +0900 (Wed, 02 Nov 2011)

  New Revision: 33611

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

  Log:
    * lib/webrick/utils.rb: fix fcntl call.
    
    * lib/drb/unix.rb: ditto.

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/lib/drb/unix.rb
    branches/ruby_1_8/lib/webrick/utils.rb
    trunk/ChangeLog
    trunk/lib/drb/unix.rb
    trunk/lib/webrick/utils.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33610)
+++ ChangeLog	(revision 33611)
@@ -1,3 +1,9 @@
+Wed Nov  2 08:16:45 2011  Tanaka Akira  <akr@f...>
+
+	* lib/webrick/utils.rb: fix fcntl call.
+
+	* lib/drb/unix.rb: ditto.
+
 Wed Nov 02 00:43:59 2011  Ayumu AIZAWA  <ayumu.aizawa@g...>
 
 	* test/psych/test_yamldbm.rb: avoid platform dependency.
Index: lib/webrick/utils.rb
===================================================================
--- lib/webrick/utils.rb	(revision 33610)
+++ lib/webrick/utils.rb	(revision 33611)
@@ -33,7 +33,7 @@
     # Sets the close on exec flag for +io+
     def set_close_on_exec(io)
       if defined?(Fcntl::FD_CLOEXEC)
-        io.fcntl(Fcntl::FD_CLOEXEC, 1)
+        io.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
       end
     end
     module_function :set_close_on_exec
Index: lib/drb/unix.rb
===================================================================
--- lib/drb/unix.rb	(revision 33610)
+++ lib/drb/unix.rb	(revision 33611)
@@ -100,7 +100,7 @@
     end
 
     def set_sockopt(soc)
-      soc.fcntl(Fcntl::F_SETFL, Fcntl::FD_CLOEXEC) if defined? Fcntl::FD_CLOEXEC
+      soc.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::FD_CLOEXEC
     end
   end
 
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 33610)
+++ ruby_1_8/ChangeLog	(revision 33611)
@@ -1,3 +1,9 @@
+Wed Nov  2 08:16:45 2011  Tanaka Akira  <akr@f...>
+
+	* lib/webrick/utils.rb: fix fcntl call.
+
+	* lib/drb/unix.rb: ditto.
+
 Sun Oct 30 00:48:57 2011  Akinori MUSHA  <knu@i...>
 
 	* configure.in (CXX): Set CXX when mkconfig.rb wants it defined.
Index: ruby_1_8/lib/webrick/utils.rb
===================================================================
--- ruby_1_8/lib/webrick/utils.rb	(revision 33610)
+++ ruby_1_8/lib/webrick/utils.rb	(revision 33611)
@@ -29,7 +29,7 @@
 
     def set_close_on_exec(io)
       if defined?(Fcntl::FD_CLOEXEC)
-        io.fcntl(Fcntl::FD_CLOEXEC, 1)
+        io.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
       end
     end
     module_function :set_close_on_exec
Index: ruby_1_8/lib/drb/unix.rb
===================================================================
--- ruby_1_8/lib/drb/unix.rb	(revision 33610)
+++ ruby_1_8/lib/drb/unix.rb	(revision 33611)
@@ -100,7 +100,7 @@
     end
 
     def set_sockopt(soc)
-      soc.fcntl(Fcntl::F_SETFL, Fcntl::FD_CLOEXEC) if defined? Fcntl::FD_CLOEXEC
+      soc.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::FD_CLOEXEC
     end
   end
 

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

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