|
@@ -23,6 +23,10 @@ def cleanup_children():
|
|
|
for child in children:
|
|
|
with suppress(psutil.NoSuchProcess):
|
|
|
child.terminate()
|
|
|
+ psutil.wait_procs(children, timeout=1)
|
|
|
+ for child in children:
|
|
|
+ with suppress(psutil.NoSuchProcess):
|
|
|
+ child.kill()
|
|
|
|
|
|
# Broken code or killing of child processes may leave the MPFuture backend corrupted
|
|
|
MPFuture.reset_backend()
|