diff options
Diffstat (limited to 'lib/pthread-cond.c')
-rw-r--r-- | lib/pthread-cond.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pthread-cond.c b/lib/pthread-cond.c index 6980cc6ed9..7c94e47b1a 100644 --- a/lib/pthread-cond.c +++ b/lib/pthread-cond.c @@ -115,7 +115,11 @@ pthread_cond_wait (_GL_UNUSED pthread_cond_t *cond, Wait endlessly. */ for (;;) { - struct timespec duration = { .tv_sec = 86400 }; + struct timespec duration = + { + .tv_sec = 86400, + .tv_nsec = 0 + }; nanosleep (&duration, NULL); } } |