summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-05-03 22:08:15 +0000
committerEric Wong <normalperson@yhbt.net>2013-05-04 00:39:48 +0000
commitc3c79fcdb71c599e426f9ce83d45dc8cc3d9cd3c (patch)
tree87870beb0f0e17d49d73cf62429e0bc70f076c92
parent9f846a26d24d7bfaf17cacad16cfbae7eec39c74 (diff)
Otherwise, the signalled process may take too long to react to
and process all the signals on machines with few CPUs.
-rw-r--r--test/unit/test_signals.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_signals.rb b/test/unit/test_signals.rb
index 84d6a4b..f1d8bb3 100644
--- a/test/unit/test_signals.rb
+++ b/test/unit/test_signals.rb
@@ -174,7 +174,7 @@ class SignalsTest < Test::Unit::TestCase
     sock.syswrite("Content-Length: #{@bs * @count}\r\n\r\n")
     1000.times { Process.kill(:HUP, pid) }
     size_before = @tmp.stat.size
-    killer = fork { loop { Process.kill(:HUP, pid); sleep(0.0001) } }
+    killer = fork { loop { Process.kill(:HUP, pid); sleep(0.01) } }
     buf = ' ' * @bs
     @count.times { sock.syswrite(buf) }
     Process.kill(:KILL, killer)