mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/utils.rb: fix fcntl call.
* lib/drb/unix.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aea9c733e8
commit
c852d76f46
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed Nov 2 08:16:45 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/webrick/utils.rb: fix fcntl call.
|
||||
|
||||
* lib/drb/unix.rb: ditto.
|
||||
|
||||
Wed Nov 02 00:43:59 2011 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
|
||||
|
||||
* test/psych/test_yamldbm.rb: avoid platform dependency.
|
||||
|
|
|
@ -100,7 +100,7 @@ module DRb
|
|||
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
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ module WEBrick
|
|||
# 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
|
||||
|
|
Loading…
Reference in a new issue