Collect zombie child processes within server loop

This commit is contained in:
Jason Dillaman 2013-06-28 15:22:35 -04:00
parent 264f8fdd7f
commit 832118e61a
1 changed files with 2 additions and 1 deletions

View File

@ -767,7 +767,8 @@ Sec-WebSocket-Accept: %s\r
pid = err = 0
child_count = 0
if multiprocessing and self.idle_timeout:
if multiprocessing:
# Collect zombie child processes
child_count = len(multiprocessing.active_children())
time_elapsed = time.time() - self.launch_time