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:
parent
a53fe773d6
commit
71a7931fb3
@ -327,12 +327,7 @@ module WEBrick
|
|||||||
def cleanup_shutdown_pipe(shutdown_pipe)
|
def cleanup_shutdown_pipe(shutdown_pipe)
|
||||||
@shutdown_pipe = nil
|
@shutdown_pipe = nil
|
||||||
return if !shutdown_pipe
|
return if !shutdown_pipe
|
||||||
shutdown_pipe.each {|io|
|
shutdown_pipe.each(&:close)
|
||||||
begin
|
|
||||||
io.close
|
|
||||||
rescue IOError # another thread closed io.
|
|
||||||
end
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def alarm_shutdown_pipe
|
def alarm_shutdown_pipe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user