Permalink
Browse files

shut down gracefully when receiving SIGTERM

  • Loading branch information...
1 parent 8da0735 commit f6040ef1494581b2e9aaaa1efc12f0ec38a48f13 @ddollar ddollar committed Mar 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/thin/server.rb
View
@@ -214,7 +214,7 @@ def running?
# * TERM calls <tt>stop!</tt> to force shutdown.
def setup_signals
trap('INT') { stop! }
- trap('TERM') { stop! }
+ trap('TERM') { stop }
unless Thin.win?
trap('QUIT') { stop }
trap('HUP') { restart }

0 comments on commit f6040ef

Please sign in to comment.