diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-03 16:18:51 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-03 16:18:51 -0700 |
commit | 5bea68e8c68244e89e5b3281782d06b6832dff1e (patch) | |
tree | b8f25a71fc690d499df88a4470a32cfea8aab75f | |
parent | 5b14ec54da4b3dcd52c8755b6a036e5e94a565d1 (diff) | |
download | rainbows-5bea68e8c68244e89e5b3281782d06b6832dff1e.tar.gz |
So are Thread#terminate! and Thread#exit!, so we use Thread#kill instead.
-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 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 |