Re: Subprocess freezes when piping from stdout.

2008-09-07 Thread Fredrik Lundh
James McGill wrote: Is anyone aware of why this might be occurring, or of any ways around this? Does the PIPE implementation in Win32 have a maximum buffer size? pipes always have a limited buffer size, on all platforms. you're supposed to read data from them as it arrives (e.g. by explicitl

Subprocess freezes when piping from stdout.

2008-09-07 Thread James McGill
Hi All, I'm using subprocess.Popen to run a C++ compiler and have set stdout = PIPE. The exact line of code that I am using is: process = Popen(command, stdout=PIPE) status = process.wait() This works fine until a large amount of data is written to stdout. When this occurs, my python program see