summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Pasquet <mathieui@mathieui.net>2014-01-30 18:23:44 +0100
committerMathieu Pasquet <mathieui@mathieui.net>2014-01-30 18:23:44 +0100
commitccb3abd704289b3724eb0bed7cb02ba540d615fa (patch)
tree36064815957db4051b1775ad76b5db47bd1ec643
parentbee12fd22b3affba75fcbc24ad913d20d19d4e18 (diff)
downloadpoezio-ccb3abd704289b3724eb0bed7cb02ba540d615fa.tar.gz
poezio-ccb3abd704289b3724eb0bed7cb02ba540d615fa.tar.bz2
poezio-ccb3abd704289b3724eb0bed7cb02ba540d615fa.tar.xz
poezio-ccb3abd704289b3724eb0bed7cb02ba540d615fa.zip
Exit on SIGPIPE
-rw-r--r--src/poezio.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/poezio.py b/src/poezio.py
index 43dd6b95..3245be09 100644
--- a/src/poezio.py
+++ b/src/poezio.py
@@ -34,6 +34,7 @@ def main():
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)
+ signal.signal(signal.SIGPIPE, cocore.exit_from_signal)
if options.debug:
cocore.debug = True
cocore.start()