From 03b7904f597d80ed7c8e5ae19e2af8d0e0c581ba Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 11 Oct 2009 01:51:27 -0700 Subject: expand and share init_worker_process This can be common across everything --- lib/rainbows/thread_pool.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/rainbows/thread_pool.rb') diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb index 766742e..033452c 100644 --- a/lib/rainbows/thread_pool.rb +++ b/lib/rainbows/thread_pool.rb @@ -24,12 +24,6 @@ module Rainbows alive = worker.tmp m = 0 - # closing anything we IO.select on will raise EBADF - trap(:USR1) { reopen_worker_logs(worker.nr) rescue nil } - trap(:QUIT) { LISTENERS.map! { |s| s.close rescue nil } } - [:TERM, :INT].each { |sig| trap(sig) { exit(0) } } # instant shutdown - logger.info "worker=#{worker.nr} ready with ThreadPool" - while LISTENERS.first && master_pid == Process.ppid maintain_thread_count(threads) threads.list.each do |thr| -- cgit v1.2.3-24-ge0c7