From 354dd6b0a216cb7ee49f0ec39aa57fa7f96990f7 Mon Sep 17 00:00:00 2001 From: directxman12 Date: Fri, 20 Sep 2013 14:12:35 -0400 Subject: [PATCH] Enable Process Reaping in All Conditions Process reaping via the SIGCHLD handler is now enabled in all circumstances, instead of just when os.fork is being used. Fixes #95 --- websockify/websocket.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/websockify/websocket.py b/websockify/websocket.py index d37fa71..4fe98b8 100644 --- a/websockify/websocket.py +++ b/websockify/websocket.py @@ -754,9 +754,7 @@ Sec-WebSocket-Accept: %s\r # Allow override of SIGINT signal.signal(signal.SIGINT, self.do_SIGINT) - if not multiprocessing: - # os.fork() (python 2.4) child reaper - signal.signal(signal.SIGCHLD, self.fallback_SIGCHLD) + signal.signal(signal.SIGCHLD, self.fallback_SIGCHLD) last_active_time = self.launch_time while True: