diff options
author | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-29 11:19:02 +0000 |
---|---|---|
committer | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-29 11:19:02 +0000 |
commit | d0df0547c6b50ea1ef7a2b90efc8d848b7141078 (patch) | |
tree | a4b06e9ebffc9c215dcdfec2050727c0182b5010 /test/drb | |
parent | 6d1220b0131af25e14f56b1d0b49b8e650376885 (diff) |
drbtest.rb: use :KILL on Windows
* test/drb/drbtest.rb (DRbCore#teardown):
Use Process.kill :KILL on Windows because Process.kill :INT silently
fails on Windows 7 and raises EINVAL on Windows XP for spawned
process with new_pgroup: false.
* test/drb/drbtest.rb (DRbAry#teardown): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb')
-rw-r--r-- | test/drb/drbtest.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb index cb553eee59..ac0f5c6be9 100644 --- a/test/drb/drbtest.rb +++ b/test/drb/drbtest.rb @@ -76,7 +76,7 @@ module DRbCore while (@there&&@there.to_s rescue nil) # nop end - signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :INT : :TERM + signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :KILL : :TERM Thread.list.each {|th| if th.respond_to?(:pid) && th[:drb_service] == @service_name begin @@ -297,7 +297,7 @@ module DRbAry while (@there&&@there.to_s rescue nil) # nop end - signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :INT : :TERM + signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :KILL : :TERM Thread.list.each {|th| if th.respond_to?(:pid) && th[:drb_service] == @service_name begin |