Commit ccb3abd7 authored by mathieui's avatar mathieui

Exit on SIGPIPE

parent bee12fd2
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment