ruby-changes:29412
From: naruse <ko1@a...>
Date: Thu, 20 Jun 2013 10:49:33 +0900 (JST)
Subject: [ruby-changes:29412] naruse:r41464 (trunk): GC before fork to avoid spending too much time in timeout block
naruse 2013-06-20 10:49:21 +0900 (Thu, 20 Jun 2013) New Revision: 41464 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41464 Log: GC before fork to avoid spending too much time in timeout block Modified files: trunk/test/ruby/test_notimp.rb Index: test/ruby/test_notimp.rb =================================================================== --- test/ruby/test_notimp.rb (revision 41463) +++ test/ruby/test_notimp.rb (revision 41464) @@ -22,6 +22,7 @@ class TestNotImplement < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_notimp.rb#L22 def test_call_fork pid = nil + GC.start Timeout.timeout(1) { pid = fork {} Process.wait pid -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/