diff options
Diffstat (limited to 'lib/unicorn.rb')
-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 d1c7eeb..54e2bc0 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -478,7 +478,7 @@ module Unicorn client = nil # closing anything we IO.select on will raise EBADF - trap(:USR1) { nr = -65536; rd.close rescue nil } + trap(:USR1) { nr = -65536; SELF_PIPE.first.close rescue nil } trap(:QUIT) { alive = nil; LISTENERS.each { |s| s.close rescue nil } } [:TERM, :INT].each { |sig| trap(sig) { exit(0) } } # instant shutdown @logger.info "worker=#{worker.nr} ready" |