summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-08-19 14:40:27 (GMT)
committerGuido van Rossum <guido@python.org>1999-08-19 14:40:27 (GMT)
commita5456d5042b3ac8d3b190fbdb6c67138607abfab (patch)
treea14941f46364a1049ad808fd581740c022c21b92 /Modules/timemodule.c
parent1ebcf6aabb357de166f226d1355baefc541950e9 (diff)
downloadcpython-a5456d5042b3ac8d3b190fbdb6c67138607abfab.zip
cpython-a5456d5042b3ac8d3b190fbdb6c67138607abfab.tar.gz
cpython-a5456d5042b3ac8d3b190fbdb6c67138607abfab.tar.bz2
In floatsleep(), when using select(), ignore EINTR error.
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__ */