Browse Source

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

Rich Felker 14 years ago
parent
commit
6e9ed66d0d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/time/timer_create.c

+ 1 - 1
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;
 }