aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webrick
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
commita2d8ad140ae48738fba939ad45ce49075e257652 (patch)
treea462c5022b5b4e367d2dd852a87c02778d7da80d /lib/webrick
parent856e653267c5468a5622b781c9b8b5d04fbebbbb (diff)
downloadruby-a2d8ad140ae48738fba939ad45ce49075e257652.tar.gz
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')
-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 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