diff options
-rw-r--r-- | daemon.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -3,10 +3,14 @@ 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 + import signal signal.signal(signal.SIGCHLD, signal.SIG_IGN) + + import multiprocessing + multiprocessing.set_start_method('forkserver') + + import server server.socket.serve_forever() |