STINNER Victor <vstin...@python.org> 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 to spawn subprocess.Popen.communicate() internal 
threads as daemon threads. So threading._shutdown() would not wait for them at 
Python exit.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38207>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to