diff options
Diffstat (limited to 'nptl/sysdeps/unix')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/pthread_kill.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_kill.c b/nptl/sysdeps/unix/sysv/linux/pthread_kill.c index 2caa72882f..a35a3f025b 100644 --- a/nptl/sysdeps/unix/sysv/linux/pthread_kill.c +++ b/nptl/sysdeps/unix/sysv/linux/pthread_kill.c @@ -36,6 +36,10 @@ __pthread_kill (threadid, signo) /* Not a valid thread handle. */ return ESRCH; + /* Disallow sending the signal we use for cancellation. */ + if (signo == SIGCANCEL) + return EINVAL; + /* We have a special syscall to do the work. */ INTERNAL_SYSCALL_DECL (err); |