Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

shut down gracefully when receiving SIGTERM

  • Loading branch information...
commit f6040ef1494581b2e9aaaa1efc12f0ec38a48f13 1 parent 8da0735
@ddollar ddollar authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/thin/server.rb
View
2  lib/thin/server.rb
@@ -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 }
Please sign in to comment.
Something went wrong with that request. Please try again.