summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()