subprocess.Popen pipeline bug?

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


bryanjugglercryptographer at yahoo.com:

> 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

-- 
Marko Rauhamaa      mailto:marko at pacujo.net     http://pacujo.net/marko/



More information about the Python-list mailing list