mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
6d1220b013
commit
d0df0547c6
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
Sat Sep 29 19:41:11 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||
|
||||
* 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.
|
||||
|
||||
Sat Sep 29 19:40:32 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||
|
||||
* test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue