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

Antoine Pitrou report at bugs.python.org
Sun Apr 11 00:03:52 CEST 2010


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

It turns out isatty() returns True for fds created by openpty(), which helps quite a bit: we can silence EIO for ttys while keeping it for non-ttys, where a low-level I/O (hardware) error should be raised properly.
Here is a patch for trunk.

----------
keywords: +patch
stage: needs patch -> patch review
versions: +Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16859/io-openpty.patch

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


More information about the Python-bugs-list mailing list