mirror of
https://github.com/python/cpython.git
synced 2025-11-13 23:46:24 +00:00
Jack Jansen: Mac has no EINTR.
This commit is contained in:
parent
d4c64ba0f9
commit
09cbb01989
1 changed files with 4 additions and 0 deletions
|
|
@ -751,7 +751,11 @@ floatsleep(double secs)
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
if (select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t) != 0) {
|
if (select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t) != 0) {
|
||||||
Py_BLOCK_THREADS
|
Py_BLOCK_THREADS
|
||||||
|
#ifdef EINTR
|
||||||
if (errno != EINTR) {
|
if (errno != EINTR) {
|
||||||
|
#else
|
||||||
|
if (1) {
|
||||||
|
#endif
|
||||||
PyErr_SetFromErrno(PyExc_IOError);
|
PyErr_SetFromErrno(PyExc_IOError);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue