projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f1414e
)
timer threads should sleep and stay asleep... a long time
author
Rich Felker
<dalias@aerifal.cx>
Sun, 3 Apr 2011 16:10:24 +0000
(12:10 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 3 Apr 2011 16:10:24 +0000
(12:10 -0400)
src/time/timer_create.c
patch
|
blob
|
history
diff --git
a/src/time/timer_create.c
b/src/time/timer_create.c
index 5d362c7ed7e626cce1dde6c37df383894789ebd0..e35293cc4027c1cbd57aaa51a245ac59b9f520c9 100644
(file)
--- 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(1
000000000
);
pthread_cleanup_pop(0);
return 0;
}