aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-09 16:44:56 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-09 16:44:56 +0000
commitcf2da37701897a31951f1b83667ab5575606c297 (patch)
treec6254c4a3419d0d267f41fd6ba28957a914ce756 /test
parent649820fdb4453b82fabf48c4a4e4c3e3ba4f469d (diff)
downloadruby-cf2da37701897a31951f1b83667ab5575606c297.tar.gz
the process maybe already finished
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_process.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 1230778711..96335c273c 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1591,7 +1591,7 @@ EOS
# test Process.setsid return value and Process::getsid(pid)
assert_equal(Marshal.load(io), Process.getsid(io.pid))
ensure
- Process.kill(:KILL, io.pid)
+ Process.kill(:KILL, io.pid) rescue nil
Process.wait(io.pid)
end
end