projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
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
5d362c7
..
e35293c
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;
}