R. David Murray added the comment:
This is a duplicate of issue 20318. The advice is to use subprocess32.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> subprocess.Popen can hang in threaded applications in Python 2
___
New submission from Kristján Valur Jónsson:
On a quad-core raspberrypi, i have experienced that subprocess.Popen()
sometimes does not return immediatelly, but only much later, when an unrelated
process has exited.
Debugging the issue, I find the parent process hanging in
# Wait