From 5bea68e8c68244e89e5b3281782d06b6832dff1e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 3 Oct 2009 16:18:51 -0700 Subject: thread_pool: Thread#kill! is gone in 1.9.2 So are Thread#terminate! and Thread#exit!, so we use Thread#kill instead. --- lib/rainbows/thread_pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/thread_pool.rb') 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 -- cgit v1.2.3-24-ge0c7