[issue15918] subprocess.Popen reads errpipe_read incorrectly, can result in short read

Vitaly report at bugs.python.org
Tue Sep 11 19:58:50 CEST 2012


Vitaly added the comment:

Sorry, there is no traceback.  The issue was identified in code review.

'man 2 read' states:

===
The system guaran-
     tees to read the number of bytes requested if the descriptor references a
     normal file that has that many bytes left before the end-of-file, but in
     no other case.
===

Since a pipe is not a "normal file", the guarantee to "read the number of bytes requested" does not apply.

----------

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


More information about the Python-bugs-list mailing list