Đỗ Chí Hải
New member
How do you wait for subprocess to finish?
Answer
wait() method
exactly defined for this: to wait for the completion of a given subprocess (and, besides, for retuning its exit status). If you use this method, you’ll prevent that the process zombies are lying around for too long. (Alternatively, you can use subprocess. call() or subprocess.
Answer
wait() method
exactly defined for this: to wait for the completion of a given subprocess (and, besides, for retuning its exit status). If you use this method, you’ll prevent that the process zombies are lying around for too long. (Alternatively, you can use subprocess. call() or subprocess.