summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index aa4cc44..a2d0a47 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -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__ */