Python deadlock using subprocess.popen and communicate

Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at
Thu Sep 22 09:24:53 CEST 2011

Am 22.09.2011 05:42 schrieb Atherun:

> I'm pretty sure thats the problem, this is a generic catch all
> function for running subprocesses.  It can be anything to a simple
> command to a complex command with a ton of output.  I'm looking for a
> better solution to handle the case of running subprocesses that have
> an undetermined amount of output.

Just handle process.stdout/stderr by yourself - read it out until EOF 
and then wait() for the process.


More information about the Python-list mailing list