[issue10963] "subprocess" can raise OSError (EPIPE) when communicating with short-lived processes

Federico Simoncelli report at bugs.python.org
Mon Jan 24 18:08:05 CET 2011


Federico Simoncelli <fsimonce at redhat.com> added the comment:

I agree they are orthogonal. The problem is that Popen.communicate doesn't support a way to ignore the exception and keep reading from stdout and sterr until the process dies.
When the child closes the stdin its (error/debug/info) messages on stout/sterr will be lost.
I am not just concerned about checking both the return-code and this exception, I am also worried about losing important information.

----------
nosy: +simon3z

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10963>
_______________________________________


More information about the Python-bugs-list mailing list