Subprocess.wait_for_exit
never resolves if process terminated before it is called
#3364
Labels
Subprocess.wait_for_exit
never resolves if process terminated before it is called
#3364
The
wait_for_exit
method eventually callsos.waitpid
, which throws aChildProcessError
if no process with the specified pid exists. This exception is caught, the function just returns, and theFuture
never resolves.tornado/tornado/process.py
Line 348 in 65a9e48
Instead, the process could be retrieved from the
_waiting
dict and the return code could be accessed from the object directly.The text was updated successfully, but these errors were encountered: