aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-21 21:07:28 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-21 21:07:28 +0000
commite814f74891ae248ee9d1a8d3caba9133c540e591 (patch)
treeca1e4bdf36e852e5121bfc12a47a16cfc16c59cf /nptl/sysdeps/unix/sysv/linux/pthread_kill.c
parentab2d98e38e085f83fca961876dd6c0e176f52be1 (diff)
downloadglibc-e814f74891ae248ee9d1a8d3caba9133c540e591.tar
glibc-e814f74891ae248ee9d1a8d3caba9133c540e591.tar.gz
glibc-e814f74891ae248ee9d1a8d3caba9133c540e591.tar.bz2
glibc-e814f74891ae248ee9d1a8d3caba9133c540e591.zip
Update.
* pthread_cancel.c (pthread_cancel): Use tkill directly. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Disallow sending SIGCANCEL. tst-kill3, tst-kill4, tst-kill5. * tst-kill1.c: New file. * tst-kill2.c: New file. * tst-kill3.c: New file. * tst-kill5.c: New file. * tst-basic7.c: Renamed to... * tst-kill4.c: ...this.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/pthread_kill.c')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/pthread_kill.c4
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);