summaryrefslogtreecommitdiff
path: root/src/poezio.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-02 18:30:06 +0200
committermathieui <mathieui@mathieui.net>2012-04-02 18:30:06 +0200
commit941acdb612061190fec341a78d5741c4ee0374e2 (patch)
treee2c649ba02b05802c38a1a92e3d75b8ed01c399d /src/poezio.py
parent4cf1acd9e4dce57cfeff246c7456a2eb1b818258 (diff)
downloadpoezio-941acdb612061190fec341a78d5741c4ee0374e2.tar.gz
poezio-941acdb612061190fec341a78d5741c4ee0374e2.tar.bz2
poezio-941acdb612061190fec341a78d5741c4ee0374e2.tar.xz
poezio-941acdb612061190fec341a78d5741c4ee0374e2.zip
Fixes #2350 (reloading static resources on SIGHUP)
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()