use weak aliases rather than function pointers to simplify some code
This commit is contained in:
parent
338b663ddb
commit
98acf04fc0
6 changed files with 20 additions and 9 deletions
|
|
@ -58,7 +58,7 @@ static void cancel_handler(int sig, siginfo_t *si, void *ctx)
|
|||
__syscall(SYS_tgkill, self->pid, self->tid, SIGCANCEL);
|
||||
}
|
||||
|
||||
static void testcancel()
|
||||
void __testcancel()
|
||||
{
|
||||
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);
|
||||
libc.testcancel = testcancel;
|
||||
}
|
||||
|
||||
int pthread_cancel(pthread_t t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue