summaryrefslogtreecommitdiff
path: root/src/time
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-03 12:10:24 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-03 12:10:24 -0400
commit6e9ed66d0db17ac9ad2342fc107e8c4528fce0ba (patch)
tree0352ef343dd054f792b3be7648ebbd2314619542 /src/time
parent6f1414e10297b75a58a92b678444fd277abc9a4f (diff)
downloadmusl-6e9ed66d0db17ac9ad2342fc107e8c4528fce0ba.tar.gz
timer threads should sleep and stay asleep... a long time
Diffstat (limited to 'src/time')
-rw-r--r--src/time/timer_create.c2
1 files changed, 1 insertions, 1 deletions
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;
}