projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add IPPROTO_HOPOPTS to in.h
[musl]
/
src
/
thread
/
pthread_setcanceltype.c
diff --git
a/src/thread/pthread_setcanceltype.c
b/src/thread/pthread_setcanceltype.c
index
7eb543a
..
ce2fff0
100644
(file)
--- a/
src/thread/pthread_setcanceltype.c
+++ b/
src/thread/pthread_setcanceltype.c
@@
-6,5
+6,6
@@
int pthread_setcanceltype(int new, int *old)
if (new > 1U) return EINVAL;
if (old) *old = self->cancelasync;
self->cancelasync = new;
+ if (new) pthread_testcancel();
return 0;
}