mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/drb/drbtest.rb: rescue Errno::ESRCH for Process.kill.
[ruby-dev:45551] reported by NARUSE, Yui. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
90d99ef1bd
commit
8f16d22e99
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Apr 23 19:54:33 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/drb/drbtest.rb: rescue Errno::ESRCH for Process.kill.
|
||||
[ruby-dev:45551] reported by NARUSE, Yui.
|
||||
|
||||
Mon Apr 23 14:16:45 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* .gdbinit (rb_ps_vm): follow st_table's packing change.
|
||||
|
|
|
@ -75,7 +75,10 @@ module DRbCore
|
|||
DRbService.manager.unregist(@service_name)
|
||||
Thread.list.each {|th|
|
||||
if th.respond_to?(:pid) && th[:drb_service] == @service_name
|
||||
Process.kill :TERM, th.pid
|
||||
begin
|
||||
Process.kill :TERM, th.pid
|
||||
rescue Errno::ESRCH
|
||||
end
|
||||
th.join
|
||||
end
|
||||
}
|
||||
|
@ -289,7 +292,10 @@ module DRbAry
|
|||
DRbService.manager.unregist(@service_name)
|
||||
Thread.list.each {|th|
|
||||
if th.respond_to?(:pid) && th[:drb_service] == @service_name
|
||||
Process.kill :TERM, th.pid
|
||||
begin
|
||||
Process.kill :TERM, th.pid
|
||||
rescue Errno::ESRCH
|
||||
end
|
||||
th.join
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue