Merge pull request #709 from JonathanCoe/master

Catch the standard Unix SIGTERM kill signal and do a graceful shutdown
This commit is contained in:
Jonathan Warren 2014-10-12 23:31:01 -04:00
commit 6e9f6d54d2

View File

@ -172,6 +172,7 @@ class Main:
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()