Merge pull request #85 from dillaman/master

Collect zombie child processes within server loop
This commit is contained in:
Joel Martin 2013-07-02 10:55:53 -07:00
commit ab389d4e71
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