From 99b4c6e1208d39d5938900e3c4f4ebb8f374e08a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 3 May 2009 13:07:42 -0700 Subject: Ignore unhandled master signals in the workers This makes it easier to use "killall -$SIGNAL unicorn" without having to lookup the correct PID. --- lib/unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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}]" -- cgit v1.2.3-24-ge0c7