summaryrefslogtreecommitdiff
path: root/lib/thrd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thrd.c')
-rw-r--r--lib/thrd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/thrd.c b/lib/thrd.c
index 1a13a51e00..5e9a988c2c 100644
--- a/lib/thrd.c
+++ b/lib/thrd.c
@@ -143,7 +143,11 @@ rpl_thrd_current (void)
/* Memory allocation failed. There is not much we can do. Have to
busy-loop, waiting for the availability of memory. */
{
- struct timespec ts = { .tv_sec = 1 };
+ struct timespec ts =
+ {
+ .tv_sec = 1,
+ .tv_nsec = 0
+ };
thrd_sleep (&ts, NULL);
}
}