[issue5380] pty.read raises IOError when slave pty device is closed

Antoine Pitrou report at bugs.python.org
Fri Feb 27 23:12:25 CET 2009


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

Well, as I suggested, in FileIO.read(): when receiving errno=5 on a
read() call and if S_IFIFO() returns true, clear errno and return an
empty string.
The question is whether a genuine EIO error ("low level IO error") can
occur on a FIFO. Intuitively, I'd say "no" since a FIFO is only a
software communication channel, but who knows...

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


More information about the Python-bugs-list mailing list