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 5d362c7..e35293c 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;
 }