Skip to content

Commit

Permalink
Merge pull request #85 from dillaman/master
Browse files Browse the repository at this point in the history
Collect zombie child processes within server loop
  • Loading branch information
kanaka committed Jul 2, 2013
2 parents 264f8fd + 832118e commit ab389d4
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 ab389d4

Please sign in to comment.