From 6e9ed66d0db17ac9ad2342fc107e8c4528fce0ba Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 3 Apr 2011 12:10:24 -0400 Subject: [PATCH] timer threads should sleep and stay asleep... a long time --- src/time/timer_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1