diff options
author | mathieui <mathieui@mathieui.net> | 2012-04-02 18:30:06 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-04-02 18:30:06 +0200 |
commit | 941acdb612061190fec341a78d5741c4ee0374e2 (patch) | |
tree | e2c649ba02b05802c38a1a92e3d75b8ed01c399d /src/poezio.py | |
parent | 4cf1acd9e4dce57cfeff246c7456a2eb1b818258 (diff) | |
download | poezio-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.py | 2 |
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() |