diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-05 20:43:36 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-05 20:43:36 -0700 |
commit | 09e93cd05506023d38c471bcbc8189447f800524 (patch) | |
tree | 6eed71c59812ebd3d219986c491045cdeff7ef58 /lib/rainbows/thread_spawn.rb | |
parent | d8d665495029bc8a102bdaf550ef618da64f36fe (diff) | |
download | rainbows-09e93cd05506023d38c471bcbc8189447f800524.tar.gz |
Avoid calling chmod on "false" leading to NoMethodError and rely entirely on LISTENERS.first being valid.
Diffstat (limited to 'lib/rainbows/thread_spawn.rb')
-rw-r--r-- | lib/rainbows/thread_spawn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb index 5d7e68e..7dcd2e4 100644 --- a/lib/rainbows/thread_spawn.rb +++ b/lib/rainbows/thread_spawn.rb @@ -22,7 +22,7 @@ module Rainbows # closing anything we IO.select on will raise EBADF trap(:USR1) { reopen_worker_logs(worker.nr) rescue nil } - trap(:QUIT) { alive = false; LISTENERS.map! { |s| s.close 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" |