Wait for a process with PID pid to finish.
If block is false, this function will not block, and return ChildStatus.running if the process is still running. Otherwise it will return always ChildStatus.done (unless there is an error, in which case ChildStatus.error is returned).
See Implementation
Wait for a process with PID pid to finish.
If block is false, this function will not block, and return ChildStatus.running if the process is still running. Otherwise it will return always ChildStatus.done (unless there is an error, in which case ChildStatus.error is returned).