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
|
@ -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…
Add table
Add a link
Reference in a new issue