about summary refs log tree commit homepage
path: root/lib/rainbows/thread_pool.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-03 16:18:51 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-03 16:18:51 -0700
commit5bea68e8c68244e89e5b3281782d06b6832dff1e (patch)
treeb8f25a71fc690d499df88a4470a32cfea8aab75f /lib/rainbows/thread_pool.rb
parent5b14ec54da4b3dcd52c8755b6a036e5e94a565d1 (diff)
downloadrainbows-5bea68e8c68244e89e5b3281782d06b6832dff1e.tar.gz
So are Thread#terminate! and Thread#exit!, so we use
Thread#kill instead.
Diffstat (limited to 'lib/rainbows/thread_pool.rb')
-rw-r--r--lib/rainbows/thread_pool.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb
index e12559a..62a04a3 100644
--- a/lib/rainbows/thread_pool.rb
+++ b/lib/rainbows/thread_pool.rb
@@ -42,7 +42,7 @@ module Rainbows
     def maintain_thread_count(threads)
       threads.list.each do |thr|
         next if (Time.now - (thr[:t] || next)) < timeout
-        thr.kill! # take no prisoners for timeout violations
+        thr.kill
         logger.error "killed #{thr.inspect} for being too old"
       end