ensure at_exit handlers run on graceful shutdown
commit593deb92e8ebd4e77e482c567d97b6ee496ac378
authorEric Wong <normalperson@yhbt.net>
Thu, 16 Jun 2011 23:57:31 +0000 (16 23:57 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 17 Jun 2011 07:28:12 +0000 (17 07:28 +0000)
tree9162663c0e66d59225fe28d1f3133a8e118868af
parenta0c59adf71506b8808de276b1288a319424ee71a
ensure at_exit handlers run on graceful shutdown

rescuing from SystemExit and exit()-ing again is ugly, but
changes made to lower stack depth positively affect _everyone_
so we'll tolerate some ugliness here.

We'll need to disable graceful exit for some tests, too...
lib/unicorn/http_server.rb
t/t0020-at_exit-handler.sh [new file with mode: 0644]
test/unit/test_server.rb
test/unit/test_signals.rb
test/unit/test_upload.rb