projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use weak aliases rather than function pointers to simplify some code
[musl]
/
src
/
thread
/
cancel_impl.c
diff --git
a/src/thread/cancel_impl.c
b/src/thread/cancel_impl.c
index
9a02e1a
..
4f78a63
100644
(file)
--- a/
src/thread/cancel_impl.c
+++ b/
src/thread/cancel_impl.c
@@
-58,7
+58,7
@@
static void cancel_handler(int sig, siginfo_t *si, void *ctx)
__syscall(SYS_tgkill, self->pid, self->tid, SIGCANCEL);
}
__syscall(SYS_tgkill, self->pid, self->tid, SIGCANCEL);
}
-
static void
testcancel()
+
void __
testcancel()
{
pthread_t self = __pthread_self();
if (self->cancel && !self->canceldisable)
{
pthread_t self = __pthread_self();
if (self->cancel && !self->canceldisable)
@@
-73,7
+73,6
@@
static void init_cancellation()
};
sigfillset(&sa.sa_mask);
__libc_sigaction(SIGCANCEL, &sa, 0);
};
sigfillset(&sa.sa_mask);
__libc_sigaction(SIGCANCEL, &sa, 0);
- libc.testcancel = testcancel;
}
int pthread_cancel(pthread_t t)
}
int pthread_cancel(pthread_t t)