Skip to content

Commit

Permalink
Update signals doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Jun 2, 2011
1 parent cff753c commit fd460bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/thin/server.rb
Expand Up @@ -210,8 +210,9 @@ def running?

protected
# Register signals:
# * INT calls +stop+ to shutdown gracefully.
# * TERM calls <tt>stop!</tt> to force shutdown.
# * TERM & QUIT calls +stop+ to shutdown gracefully.
# * INT calls <tt>stop!</tt> to force shutdown.
# * HUP calls <tt>restart</tt> to ... surprise, restart!
def setup_signals
trap('INT') { stop! }
trap('TERM') { stop }
Expand Down

0 comments on commit fd460bc

Please sign in to comment.