Iterate more sensibly over processes

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
This commit is contained in:
Zack Cerza 2014-03-08 07:58:13 -06:00
parent 204b3ac710
commit b4205caedf

View File

@ -347,7 +347,7 @@ def wait(processes, timeout=None):
not_ready = list(processes)
while len(not_ready) > 0:
check_time()
for proc in not_ready:
for proc in list(not_ready):
if proc.exitstatus.ready():
not_ready.remove(proc)