From c852d76f46a68e28200f0c3f68c8c67879e79c86 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 1 Nov 2011 23:17:53 +0000 Subject: * 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 --- lib/webrick/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/webrick/utils.rb') 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 -- cgit v1.2.3