From 907a1dddf1d12add045040b6c2b0e6192a8cdba9 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Sun, 11 Oct 2015 14:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E7=85=A7=20message=5Fbus=20=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E7=9A=84=E8=AF=B4=E6=98=8E=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=20Unicorn=20=E7=9A=84=E9=85=8D=E7=BD=AE;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/unicorn.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/unicorn.rb b/config/unicorn.rb index 7637dbbae1..d2396d741f 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -40,6 +40,8 @@ end after_fork do |_server, _worker| + MessageBus.after_fork + Signal.trap 'TERM' do puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT' end