ruby-changes:3970
From: ko1@a...
Date: Wed, 13 Feb 2008 22:20:23 +0900 (JST)
Subject: [ruby-changes:3970] akr - Ruby:r15460 (trunk): wait signal arrival 10sec.
akr 2008-02-13 22:20:12 +0900 (Wed, 13 Feb 2008)
New Revision: 15460
Modified files:
trunk/sample/test.rb
Log:
wait signal arrival 10sec.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/sample/test.rb?r1=15460&r2=15459&diff_format=u
Index: sample/test.rb
===================================================================
--- sample/test.rb (revision 15459)
+++ sample/test.rb (revision 15460)
@@ -1674,7 +1674,10 @@
$x = 0
trap "SIGINT", Proc.new{|sig| $x = 2}
Process.kill "SIGINT", $$
- sleep 0.1
+ 100.times {
+ sleep 0.1
+ break if $x != 0
+ }
test_ok($x == 2)
trap "SIGINT", Proc.new{raise "Interrupt"}
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/