[前][次][番号順一覧][スレッド一覧]

ruby-changes:27127

From: naruse <ko1@a...>
Date: Sun, 10 Feb 2013 01:45:05 +0900 (JST)
Subject: [ruby-changes:27127] naruse:r39179 (trunk): the process maybe already finished

naruse	2013-02-10 01:44:56 +0900 (Sun, 10 Feb 2013)

  New Revision: 39179

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39179

  Log:
    the process maybe already finished

  Modified files:
    trunk/test/ruby/test_process.rb

Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 39178)
+++ test/ruby/test_process.rb	(revision 39179)
@@ -1591,7 +1591,7 @@ EOS https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1591
         # 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]