diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-04 01:43:34 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-04 23:05:04 -0800 |
commit | 8f65503d27f9935ac09d8a7a8543f9a57b5de63b (patch) | |
tree | d79bce4cf9f7e64df7b804522f66602167759c7c | |
parent | a59778612a3b651d4a59f37ecfdbba606b4263a6 (diff) | |
download | rainbows-8f65503d27f9935ac09d8a7a8543f9a57b5de63b.tar.gz |
Like the rest of the concurrency models. This gives us more flexibility in case a process-wide blocking operation started during an "unlucky" period when the join timeout was about to expire.
-rw-r--r-- | lib/rainbows/thread_pool.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb index 6556164..280ba40 100644 --- a/lib/rainbows/thread_pool.rb +++ b/lib/rainbows/thread_pool.rb @@ -34,7 +34,7 @@ module Rainbows pool.each do |thr| worker.tmp.chmod(m = 0 == m ? 1 : 0) # if any worker dies, something is serious wrong, bail - thr.join(timeout) and break + thr.join(1) and break end end join_threads(pool, worker) |