diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-22 13:59:16 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-22 13:59:16 +0000 |
commit | 71a7931fb3f58c55eaff9452f2bba0cb19102d44 (patch) | |
tree | a462c5022b5b4e367d2dd852a87c02778d7da80d /lib | |
parent | a53fe773d674bde998dd8d13f3f76c0f46d7c431 (diff) |
IOError does not happen
* IOError does not happen even if another thread closes io
* Use symbol proc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/webrick/server.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb index 9462e6cfb2..a3c2ab3ddf 100644 --- a/lib/webrick/server.rb +++ b/lib/webrick/server.rb @@ -327,12 +327,7 @@ module WEBrick def cleanup_shutdown_pipe(shutdown_pipe) @shutdown_pipe = nil return if !shutdown_pipe - shutdown_pipe.each {|io| - begin - io.close - rescue IOError # another thread closed io. - end - } + shutdown_pipe.each(&:close) end def alarm_shutdown_pipe |