We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
errno=0
pysleep[zero_posix]
1 parent 2996937 commit 80de853Copy full SHA for 80de853
Modules/timemodule.c
@@ -2217,6 +2217,7 @@ pysleep(PyTime_t timeout)
2217
{
2218
assert(timeout >= 0);
2219
#ifndef MS_WINDOWS
2220
+ assert(errno == 0);
2221
if (timeout == 0) {
2222
return pysleep_zero_posix();
2223
}
@@ -2407,6 +2408,7 @@ pysleep(PyTime_t timeout)
2407
2408
static int
2409
pysleep_zero_posix(void)
2410
2411
2412
PyTime_t deadline, monotonic;
2413
if (PyTime_Monotonic(&monotonic) < 0) {
2414
return -1;
0 commit comments