about summary refs log tree commit homepage
path: root/lib/rainbows/thread_spawn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-11 01:51:27 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-11 01:51:27 -0700
commit03b7904f597d80ed7c8e5ae19e2af8d0e0c581ba (patch)
tree957914a5e7fd5d197455e056f33aff6b96843d1d /lib/rainbows/thread_spawn.rb
parent427ac38fe3eeadad1d6fb897bd835607a9372aad (diff)
downloadrainbows-03b7904f597d80ed7c8e5ae19e2af8d0e0c581ba.tar.gz
This can be common across everything
Diffstat (limited to 'lib/rainbows/thread_spawn.rb')
-rw-r--r--lib/rainbows/thread_spawn.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb
index 32040ad..ef5d3db 100644
--- a/lib/rainbows/thread_spawn.rb
+++ b/lib/rainbows/thread_spawn.rb
@@ -20,12 +20,6 @@ module Rainbows
       m = 0
       limit = worker_connections
 
-      # 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 ThreadSpawn"
-
       begin
         ret = begin
           alive.chmod(m = 0 == m ? 1 : 0)