From: Rich Felker Date: Sun, 3 Apr 2011 16:10:24 +0000 (-0400) Subject: timer threads should sleep and stay asleep... a long time X-Git-Tag: v0.7.6~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6e9ed66d0db17ac9ad2342fc107e8c4528fce0ba;p=oweals%2Fmusl.git timer threads should sleep and stay asleep... a long time --- diff --git a/src/time/timer_create.c b/src/time/timer_create.c index 5d362c7e..e35293cc 100644 --- a/src/time/timer_create.c +++ b/src/time/timer_create.c @@ -45,7 +45,7 @@ static void *start(void *arg) pthread_barrier_wait(&args->b); pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0); /* Loop on async-signal-safe cancellation point */ - for (;;) sleep(1); + for (;;) sleep(1000000000); pthread_cleanup_pop(0); return 0; }