[issue10956] file.write and file.read don't handle EINTR

Antoine Pitrou report at bugs.python.org
Thu Jan 20 16:03:10 CET 2011


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

> file.write, on EINTR, could decide to continue writing if no Python
> signal handler raised an exception.
> Analogously, file.read could decide to keep on reading on EINTR if no
> Python signal handler raised an exception.

Ok. This would only be done in buffered mode, though, so your fwrite.py example would have to be changed slightly (drop the ",0" in fdopen()).

----------

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


More information about the Python-bugs-list mailing list