diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-10-06 10:32:01 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-10-06 10:32:01 +0200 |
commit | d546fffb74b6340fe2076f588db52d0bb6296b9f (patch) | |
tree | ef8fc19d138b39d5944c0ff91c4a4c3e90538951 | |
parent | 2768eb14d8042206c47bdabdcc8ae14efe4e080b (diff) |
Kill all the zombies
-rw-r--r-- | daemon.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() |