timer threads should sleep and stay asleep... a long time

This commit is contained in:
Rich Felker 2011-04-03 12:10:24 -04:00
parent 6f1414e102
commit 6e9ed66d0d
1 changed files with 1 additions and 1 deletions

View 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;
}