[Tutor] Question about subprocess

Danny Yoo dyoo at hashcollision.org
Sat Jan 11 06:46:52 CET 2014


There is a warning in the documentation on subprocess that might be
relevant to your situation:

    Warning:
    Use communicate() rather than .stdin.write, .stdout.read or
.stderr.read to avoid deadlocks due to any of the other OS pipe
buffers filling up and blocking the child process.

Reference: http://docs.python.org/2/library/subprocess.html


It's possible that the process is deadlocking due to this situation.
Do you run into this issue if you use communicate()?



Good luck!


More information about the Tutor mailing list