Message253465
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. |
|
Date |
User |
Action |
Args |
2015-10-26 10:04:59 | eryksun | set | recipients:
+ eryksun, dabeaz |
2015-10-26 10:04:59 | eryksun | set | messageid: <1445853899.22.0.0560920311577.issue25476@psf.upfronthosting.co.za> |
2015-10-26 10:04:59 | eryksun | link | issue25476 messages |
2015-10-26 10:04:58 | eryksun | create | |
|