diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-21 21:07:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-21 21:07:28 +0000 |
commit | e814f74891ae248ee9d1a8d3caba9133c540e591 (patch) | |
tree | ca1e4bdf36e852e5121bfc12a47a16cfc16c59cf /nptl/sysdeps/unix | |
parent | ab2d98e38e085f83fca961876dd6c0e176f52be1 (diff) | |
download | glibc-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')
-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); |