Skip to content

Commit

Permalink
Setup signals again after daemonizing
Browse files Browse the repository at this point in the history
  • Loading branch information
atotic committed Mar 22, 2012
1 parent 56185ce commit d8b7af0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/thin/server.rb
Expand Up @@ -208,6 +208,11 @@ def running?
@backend.running?
end

# deamonizing kills our HUP signal, so we set them again
def after_daemonize
setup_signals
end

protected
# Register signals:
# * TERM & QUIT calls +stop+ to shutdown gracefully.
Expand Down

0 comments on commit d8b7af0

Please sign in to comment.