about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-13 13:09:05 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-13 13:50:23 -0700
commit8762b78d1b44b50092a8cbfc22e31bf611612a73 (patch)
treec64dfc95272cee55c36f64a1ba33d55eff30381b /lib
parent943f9ff1a04eb1c0e494bd74b269d3e93e809a98 (diff)
downloadunicorn-8762b78d1b44b50092a8cbfc22e31bf611612a73.tar.gz
By reraising SignalException in workers.  Since we just rely on
default signal handlers for the majority of signals now, ensure
those signals actually exit the process.
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 4465109..bb4054a 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -521,8 +521,8 @@ module Unicorn
               reopen_logs or exit(alive ? 1 : 0)
             end
           end
-        rescue SystemExit => e
-          exit(e.status)
+        rescue SignalException, SystemExit => e
+          raise e
         rescue Object => e
           if alive
             logger.error "Unhandled listen loop exception #{e.inspect}."