__cancel();
}
- __syscall(SYS_tgkill, self->pid, self->tid, SIGCANCEL);
+ __syscall(SYS_tkill, self->tid, SIGCANCEL);
}
void __testcancel()
{
if (!libc.has_thread_pointer) return;
- pthread_t self = pthread_self();
+ pthread_t self = __pthread_self();
if (self->cancel && !self->canceldisable)
__cancel();
}