timer threads should sleep and stay asleep... a long time
authorRich Felker <dalias@aerifal.cx>
Sun, 3 Apr 2011 16:10:24 +0000 (12:10 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 3 Apr 2011 16:10:24 +0000 (12:10 -0400)
src/time/timer_create.c

index 5d362c7ed7e626cce1dde6c37df383894789ebd0..e35293cc4027c1cbd57aaa51a245ac59b9f520c9 100644 (file)
@@ -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;
 }