diff options
Diffstat (limited to 'test/drb')
-rw-r--r-- | test/drb/drbtest.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb index 83ae2f93f5..24c67f27ec 100644 --- a/test/drb/drbtest.rb +++ b/test/drb/drbtest.rb @@ -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 } |