Kaydet (Commit) a5456d50 authored tarafından Guido van Rossum's avatar Guido van Rossum

In floatsleep(), when using select(), ignore EINTR error.

üst 1ebcf6aa
......@@ -751,8 +751,10 @@ floatsleep(double secs)
Py_BEGIN_ALLOW_THREADS
if (select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t) != 0) {
Py_BLOCK_THREADS
PyErr_SetFromErrno(PyExc_IOError);
return -1;
if (errno != EINTR) {
PyErr_SetFromErrno(PyExc_IOError);
return -1;
}
}
Py_END_ALLOW_THREADS
#else /* !HAVE_SELECT || __BEOS__ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment