diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-05-03 13:07:42 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-05-03 20:36:15 -0700 |
commit | 1ffc1671d659e03d6fbf82864734bafa1f4fb35b (patch) | |
tree | 610f1c32ad4b391219be1da9e64700a2173caf23 | |
parent | df76b78d359f34a73ce407f40f594577e04b014b (diff) | |
download | unicorn-1ffc1671d659e03d6fbf82864734bafa1f4fb35b.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 2b528fa..593b43b 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -441,7 +441,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}]" |