Collect zombie child processes within server loop

This commit is contained in:
Jason Dillaman 2013-06-28 12:41:39 -04:00
parent 8f12ca7a5a
commit 39e1b10bf7
1 changed files with 2 additions and 1 deletions

View File

@ -853,7 +853,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