subprocess.Popen hangs at times?
Fredrik Lundh
fredrik at pythonware.com
Wed Sep 10 14:15:50 EDT 2008
Kenneth McDonald wrote:
> When making calls of the form Popen(cmd, shell=True,
> stdout=subprocess.PIPE), we've been getting occasional, predictable
> hangs. Will Popen accumulate a certain amount of stdout and then block
> until its read?
the pipe provided by the operating system has a limited buffer size
(usually just a few kilobytes). when the buffer fills up, the operating
system will halt the external process.
</F>
More information about the Python-list
mailing list