summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-10-06 10:32:01 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-10-06 10:32:01 +0200
commitd546fffb74b6340fe2076f588db52d0bb6296b9f (patch)
treeef8fc19d138b39d5944c0ff91c4a4c3e90538951
parent2768eb14d8042206c47bdabdcc8ae14efe4e080b (diff)
Kill all the zombies
-rw-r--r--daemon.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon.py b/daemon.py
index 8a7c971..1198c32 100644
--- a/daemon.py
+++ b/daemon.py
@@ -3,7 +3,10 @@
if __name__ == '__main__':
import os
+ import signal
import logging
logging.basicConfig(filename=os.environ.get('CODEQ_SERVER_LOG') or 'codeq-server.log', level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s')
import server
+
+ signal.signal(signal.SIGCHLD, signal.SIG_IGN)
server.socket.serve_forever()