diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-05-03 22:08:15 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-05-04 00:39:48 +0000 |
commit | c3c79fcdb71c599e426f9ce83d45dc8cc3d9cd3c (patch) | |
tree | 87870beb0f0e17d49d73cf62429e0bc70f076c92 /test/unit | |
parent | 9f846a26d24d7bfaf17cacad16cfbae7eec39c74 (diff) | |
download | unicorn-c3c79fcdb71c599e426f9ce83d45dc8cc3d9cd3c.tar.gz |
Otherwise, the signalled process may take too long to react to and process all the signals on machines with few CPUs.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/test_signals.rb | 2 |
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) |