提交 6e9ed66d 编写于 作者: R Rich Felker

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

上级 6f1414e1
...@@ -45,7 +45,7 @@ static void *start(void *arg) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册