diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-17 05:59:08 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-17 05:59:08 +0000 |
commit | d6ede643fc652c254748ea85d87e31c2f06a7d25 (patch) | |
tree | 15d8b81cf68f2987685cea89a21f3be3eacf1deb /lib | |
parent | 4148b8846521f6cdbe35bc79a63e0512f65fe346 (diff) | |
download | ruby-d6ede643fc652c254748ea85d87e31c2f06a7d25.tar.gz |
lib/webrick/server.rb: avoid redundant fcntl call
Sockets are close-on-exec by default since Ruby 2.0, so it
is redundant to set it again.
* lib/webrick/server.rb (accept_client): avoid redundant fcntl call
[Feature #11137]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/webrick/server.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb index 815375f30f..5ada88ac73 100644 --- a/lib/webrick/server.rb +++ b/lib/webrick/server.rb @@ -263,7 +263,6 @@ module WEBrick sock = svr.accept sock.sync = true Utils::set_non_blocking(sock) - Utils::set_close_on_exec(sock) rescue Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPROTO, Errno::EINVAL rescue StandardError => ex |