[issue23694] PEP 475: handle EINTR in fileutils.c

STINNER Victor report at bugs.python.org
Wed Mar 18 01:53:46 CET 2015


STINNER Victor added the comment:

fileutils_eintr.patch: handle EINTR for open, fopen and dup (only on Linux for dup in _Py_dup).

_Py_wfopen() and _Py_fopen() are not modified because callers are not really prepared to handle exceptions. These functions are mostly used during early steps of Python initializations. If someone is motived, you can propose a patch for these functions.

For other functions (cwd, readlink, etc.), it's not clear to me if we can get EINTR or not.

----------
keywords: +patch
Added file: http://bugs.python.org/file38535/fileutils_eintr.patch

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


More information about the Python-bugs-list mailing list