From: Guido van Rossum Date: Mon, 8 Nov 1999 15:32:27 +0000 (+0000) Subject: Jack Jansen: Mac has no EINTR. X-Git-Tag: v1.6a1~759 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09cbb019895047eaf159f40429dd8530601c1d01;p=thirdparty%2FPython%2Fcpython.git Jack Jansen: Mac has no EINTR. --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index a2d0a47afdd8..417825d75043 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -751,7 +751,11 @@ floatsleep(double secs) Py_BEGIN_ALLOW_THREADS if (select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t) != 0) { Py_BLOCK_THREADS +#ifdef EINTR if (errno != EINTR) { +#else + if (1) { +#endif PyErr_SetFromErrno(PyExc_IOError); return -1; }