summaryrefslogtreecommitdiff
path: root/src/poezio.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/poezio.py')
-rw-r--r--src/poezio.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/poezio.py b/src/poezio.py
index 7b55ce96..1823b2ec 100644
--- a/src/poezio.py
+++ b/src/poezio.py
@@ -15,6 +15,7 @@ import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import signal
import logging
+from logger import logger
from config import options
import singleton
@@ -30,6 +31,7 @@ def main():
else:
logging.basicConfig(level=logging.CRITICAL)
cocore = singleton.Singleton(core.Core)
+ signal.signal(signal.SIGHUP, cocore.sighup_handler) # ignore ctrl-c
cocore.start()
if not cocore.xmpp.start(): # Connect to remote server
cocore.on_failed_connection()