eryksun added the comment:

I meant that you need a check in buffered_close such as the following:

    if (res == NULL) {
        if (PyErr_ExceptionMatches(PyExc_BlockingIOError))
            goto end;
        PyErr_Fetch(&exc, &val, &tb);
    } else
        Py_DECREF(res);

For 2.7 you could create a function similar to _PyIO_trap_eintr, but trap the 
errors that Python 3 maps to BlockingIOError: EAGAIN/EWOULDBLOCK, EALREADY, and 
EINPROGRESS.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25476>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to