diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-01 23:17:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-01 23:17:53 +0000 |
commit | c852d76f46a68e28200f0c3f68c8c67879e79c86 (patch) | |
tree | 6832543b338a31a276d64d196a70e0638d440e14 /lib/webrick/utils.rb | |
parent | aea9c733e83800909730871bdf6b1bf48016846d (diff) |
* 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
Diffstat (limited to 'lib/webrick/utils.rb')
-rw-r--r-- | lib/webrick/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/utils.rb b/lib/webrick/utils.rb index 983ac9f954..157c530cc9 100644 --- a/lib/webrick/utils.rb +++ b/lib/webrick/utils.rb @@ -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 |