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

Antoine Pitrou report at bugs.python.org
Thu Jan 20 21:27:00 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> It could be argued that this is incorrect, as it masks under-reads of
> stdin by the subprocess.  However I believe a sanely-written subprocess 
> ought to indicate success/failure back with its return code.

It seems quite orthogonal. The subprocess could have terminated successfully while not all of the stdin bytes were consumed; EPIPE informs you of the latter.

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list