subprocess -- broken pipe error

7stud bbxx789_05ss at
Mon Jul 2 22:06:12 CEST 2007

On Jul 2, 1:58 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n... at> wrote:
> 7stud wrote:
> > Thanks for the response.  So are you saying that the only way you
> > can get data out of a pipe is when the subprocess has terminated?
> No, not only because Pipes aren't related to processes in any
> special way.
> He said that you can't write to a pipe whose reader has already
> terminated.

What he said was:

>...once the subprocess terminates (which it must have done for
> to return a result)

And based on the results of the examples I posted in my last post, it
seems to confirm that no data travels through a pipe until a program
on one side of the pipe has terminated.

More information about the Python-list mailing list