diff options
| author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-20 14:52:28 +0000 |
|---|---|---|
| committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-20 14:52:28 +0000 |
| commit | 7029875b20fa7f231b8145442b46a1f31cd89809 (patch) | |
| tree | f3ea0eb7843bd3bde8032e9ac8ddb2d3b132b49c | |
| parent | 3207cfced7dc17d3971e76bb080aadae02b5eb2d (diff) | |
merge revision(s) 40232: [Backport #8251]
* test/drb/drbtest.rb (Drb{Core,Ary}#teardown): retry Process.kill
if it fails with Errno::EPERM on Windows (workaround).
[ruby-dev:47245] [Bug #8251]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | test/drb/drbtest.rb | 26 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 27 insertions, 7 deletions
@@ -1,3 +1,9 @@ +Sat Jul 20 23:49:33 2013 NAKAMURA Usaku <usa@ruby-lang.org> + + * test/drb/drbtest.rb (Drb{Core,Ary}#teardown): retry Process.kill + if it fails with Errno::EPERM on Windows (workaround). + [ruby-dev:47245] [Bug #8251] + Sat Jul 20 23:31:11 2013 Aman Gupta <tmm1@ruby-lang.org> * iseq.c (iseq_location_setup): re-use existing string when iseq has diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb index ac0f5c6be9..6de85cee82 100644 --- a/test/drb/drbtest.rb +++ b/test/drb/drbtest.rb @@ -79,9 +79,16 @@ module DRbCore signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :KILL : :TERM Thread.list.each {|th| if th.respond_to?(:pid) && th[:drb_service] == @service_name - begin - Process.kill signal, th.pid - rescue Errno::ESRCH + 10.times do + begin + Process.kill signal, th.pid + break + rescue Errno::ESRCH + break + rescue Errno::EPERM # on Windows + sleep 0.1 + retry + end end th.join end @@ -300,9 +307,16 @@ module DRbAry signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :KILL : :TERM Thread.list.each {|th| if th.respond_to?(:pid) && th[:drb_service] == @service_name - begin - Process.kill signal, th.pid - rescue Errno::ESRCH + 10.times do + begin + Process.kill signal, th.pid + break + rescue Errno::ESRCH + break + rescue Errno::EPERM # on Windows + sleep 0.1 + retry + end end th.join end @@ -1,6 +1,6 @@ #define RUBY_VERSION "2.0.0" #define RUBY_RELEASE_DATE "2013-07-20" -#define RUBY_PATCHLEVEL 272 +#define RUBY_PATCHLEVEL 273 #define RUBY_RELEASE_YEAR 2013 #define RUBY_RELEASE_MONTH 7 |
