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

Guido van Rossum report at bugs.python.org
Fri Feb 27 20:27:03 CET 2009


Guido van Rossum <guido at python.org> added the comment:

IIUC the problem is that a read() syscall on the pty after the other end
has been closed raises an error instead of reading 0 bytes?  Isn't that
a bug in the pty implementation? For lots of devices (e.g. sockets,
pipes) a short non-empty read just means that you have to call read()
again to get more data -- it does not mean EOF.

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


More information about the Python-bugs-list mailing list