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

ruby-changes:29397

From: naruse <ko1@a...>
Date: Thu, 20 Jun 2013 03:04:26 +0900 (JST)
Subject: [ruby-changes:29397] naruse:r41449 (trunk): collect zombies

naruse	2013-06-20 03:04:16 +0900 (Thu, 20 Jun 2013)

  New Revision: 41449

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

  Log:
    collect zombies

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

Index: test/ruby/test_notimp.rb
===================================================================
--- test/ruby/test_notimp.rb	(revision 41448)
+++ test/ruby/test_notimp.rb	(revision 41449)
@@ -28,7 +28,10 @@ class TestNotImplement < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_notimp.rb#L28
       pid = nil
     }
   ensure
-    Process.kill :KILL, pid if pid
+    if pid
+      Process.kill :KILL, pid
+      Process.wait pid
+    end
   end if Process.respond_to?(:fork)
 
   def test_call_lchmod

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

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