Skip to content

Commit

Permalink
Merge pull request #709 from JonathanCoe/master
Browse files Browse the repository at this point in the history
Catch the standard Unix SIGTERM kill signal and do a graceful shutdown
  • Loading branch information
Atheros1 committed Oct 13, 2014
2 parents 13db5fe + 3b42805 commit 6e9f6d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bitmessagemain.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def start(self, daemon=False):
curses = True

signal.signal(signal.SIGINT, helper_generic.signal_handler)
signal.signal(signal.SIGTERM, helper_generic.signal_handler)
# signal.signal(signal.SIGINT, signal.SIG_DFL)

helper_bootstrap.knownNodes()
Expand Down

0 comments on commit 6e9f6d5

Please sign in to comment.