Instant shutdown signals really mean instant shutdown
commitc2e51916201f4f29a72e21320b38181ee1eaa697
authorEric Wong <normalperson@yhbt.net>
Mon, 4 May 2009 02:07:40 +0000 (4 02:07 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 4 May 2009 04:22:48 +0000 (3 21:22 -0700)
tree25cbe6fbfbcfff7f68c654873ea2c5ac422afd2d
parenta7830cce6a3bf13996fe42503164437fb9809909
Instant shutdown signals really mean instant shutdown

Use SIGQUIT if you're going to be nice and do graceful
shutdowns.  Sometimes people run real applications on this
server and SIGINT/SIGTERM get lost/trapped when Object is
rescued and that is not good.  Also make sure we break out of
the loop properly when the master is dead.

Testcases added for both SIGINT and dead master handling.
lib/unicorn.rb
test/unit/test_signals.rb