summaryrefslogtreecommitdiff
path: root/src/poezio.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/poezio.py')
-rw-r--r--src/poezio.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/poezio.py b/src/poezio.py
index 258a25e4..161446da 100644
--- a/src/poezio.py
+++ b/src/poezio.py
@@ -31,7 +31,9 @@ def main():
else:
logging.basicConfig(level=logging.CRITICAL)
cocore = singleton.Singleton(core.Core)
- signal.signal(signal.SIGHUP, cocore.sighup_handler) # ignore ctrl-c
+ signal.signal(signal.SIGUSR1, cocore.sigusr_handler) # reload the config
+ signal.signal(signal.SIGHUP, cocore.exit_from_signal)
+ signal.signal(signal.SIGTERM, cocore.exit_from_signal)
if options.debug:
cocore.debug = True
cocore.start()