Skip to content

Commit

Permalink
Collect zombie child processes within server loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Dillaman authored and Jason Dillaman committed Jun 28, 2013
1 parent 264f8fd commit 832118e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion websockify/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,8 @@ def start_server(self):
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
Expand Down

0 comments on commit 832118e

Please sign in to comment.