diff options
Diffstat (limited to 'src/thread/pthread_cancel.c')
-rw-r--r-- | src/thread/pthread_cancel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/thread/pthread_cancel.c b/src/thread/pthread_cancel.c index 9397ffe9..9f7829e6 100644 --- a/src/thread/pthread_cancel.c +++ b/src/thread/pthread_cancel.c @@ -1,7 +1,6 @@ -#define SYSCALL_RETURN_ERRNO #include "pthread_impl.h" int pthread_cancel(pthread_t t) { - return syscall3(__NR_tgkill, t->pid, t->tid, SIGCANCEL); + return pthread_kill(t, SIGCANCEL); } |