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
This commit is contained in:
kazu 2016-11-22 13:59:16 +00:00
parent a53fe773d6
commit 71a7931fb3

View File

@ -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