timer threads should sleep and stay asleep... a long time
This commit is contained in:
parent
6f1414e102
commit
6e9ed66d0d
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ static void *start(void *arg)
|
||||||
pthread_barrier_wait(&args->b);
|
pthread_barrier_wait(&args->b);
|
||||||
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0);
|
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0);
|
||||||
/* Loop on async-signal-safe cancellation point */
|
/* Loop on async-signal-safe cancellation point */
|
||||||
for (;;) sleep(1);
|
for (;;) sleep(1000000000);
|
||||||
pthread_cleanup_pop(0);
|
pthread_cleanup_pop(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue