From 3b42805efc37685426fe132e8453b7806f97bb89 Mon Sep 17 00:00:00 2001 From: JonathanCoe Date: Tue, 26 Aug 2014 13:55:42 +0200 Subject: [PATCH] Catch the standard Unix SIGTERM kill signal and do a graceful shutdown of PyBitmessage. We already do this for the SIGINT kill signal. The change allows us to do a clean shutdown of PyBitmessage when its process has been separated from the terminal. --- src/bitmessagemain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 491b82f0..fffe99e7 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -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() -- 2.45.1