subprocess.Popen pipeline bug?

Marko Rauhamaa marko at
Thu Mar 13 21:58:07 CET 2008

bryanjugglercryptographer at

> Not sure. I think what's happening is that the second cat subprocess
> never gets EOF on its stdin, because there are still processes with an
> open file descriptor for the other end of the pipe.

You are right. However, the close_fds technique seems a bit
heavy-handed. Well, that's what you get when you try to combine fork and
exec into a single call.


Marko Rauhamaa      mailto:marko at

More information about the Python-list mailing list