зеркало из https://github.com/github/ruby.git
* 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:
Родитель
90d99ef1bd
Коммит
8f16d22e99
|
@ -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>
|
Mon Apr 23 14:16:45 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* .gdbinit (rb_ps_vm): follow st_table's packing change.
|
* .gdbinit (rb_ps_vm): follow st_table's packing change.
|
||||||
|
|
|
@ -75,7 +75,10 @@ module DRbCore
|
||||||
DRbService.manager.unregist(@service_name)
|
DRbService.manager.unregist(@service_name)
|
||||||
Thread.list.each {|th|
|
Thread.list.each {|th|
|
||||||
if th.respond_to?(:pid) && th[:drb_service] == @service_name
|
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
|
th.join
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
@ -289,7 +292,10 @@ module DRbAry
|
||||||
DRbService.manager.unregist(@service_name)
|
DRbService.manager.unregist(@service_name)
|
||||||
Thread.list.each {|th|
|
Thread.list.each {|th|
|
||||||
if th.respond_to?(:pid) && th[:drb_service] == @service_name
|
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
|
th.join
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче