diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-05-03 13:07:42 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-05-22 01:54:21 -0700 |
commit | 99b4c6e1208d39d5938900e3c4f4ebb8f374e08a (patch) | |
tree | 11c06d7d5c431682ef92a9294124c5d9012c0165 | |
parent | cfe5234e975b914e831907db77fee8f154950fc1 (diff) | |
download | unicorn-99b4c6e1208d39d5938900e3c4f4ebb8f374e08a.tar.gz |
This makes it easier to use "killall -$SIGNAL unicorn" without having to lookup the correct PID.
-rw-r--r-- | lib/unicorn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 07925f2..1f7cf8d 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -443,7 +443,7 @@ module Unicorn # traps for USR1, USR2, and HUP may be set in the @after_fork Proc # by the user. def init_worker_process(worker) - QUEUE_SIGS.each { |sig| trap(sig, 'DEFAULT') } + QUEUE_SIGS.each { |sig| trap(sig, 'IGNORE') } trap(:CHLD, 'DEFAULT') SIG_QUEUE.clear proc_name "worker[#{worker.nr}]" |