summaryrefslogtreecommitdiff
path: root/lib/webrick/server.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-22 13:59:16 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-22 13:59:16 +0000
commit71a7931fb3f58c55eaff9452f2bba0cb19102d44 (patch)
treea462c5022b5b4e367d2dd852a87c02778d7da80d /lib/webrick/server.rb
parenta53fe773d674bde998dd8d13f3f76c0f46d7c431 (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/webrick/server.rb')
-rw-r--r--lib/webrick/server.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index 9462e6c..a3c2ab3 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