From 1ffc1671d659e03d6fbf82864734bafa1f4fb35b 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(-) 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}]" -- cgit v1.2.3-24-ge0c7