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
This commit is contained in:
directxman12 2013-09-20 14:12:35 -04:00
parent ab389d4e71
commit 354dd6b0a2
1 changed files with 1 additions and 3 deletions

View File

@ -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: