[issue38207] subprocess: Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

2020-02-07 Thread STINNER Victor
STINNER Victor added the comment: My use case was specific to regrtest. I solved the issue differently in regrtest. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38207] subprocess: Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: On Windows, the threads reading pipes continue to run even after the direct child process exited. Problem: at Python exit (main process), Python hangs on calling threading._shutdown() which waits until all Python threads complete. One enhancement would be

[issue38207] subprocess: Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

2019-10-16 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-31447: "proc communicate not exiting on python subprocess timeout using PIPES". -- ___ Python tracker ___

[issue38207] subprocess: Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe

2019-10-16 Thread STINNER Victor
Change by STINNER Victor : -- title: subprocess: On Windows, Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe -> subprocess: Popen.kill() + Popen.communicate() is blocking until all processes using the pipe close the pipe