projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70eb948
)
(__pthread_kill): Disallow sending SIGCANCEL.
author
drepper
<drepper>
Fri, 21 Feb 2003 20:32:28 +0000
(20:32 +0000)
committer
drepper
<drepper>
Fri, 21 Feb 2003 20:32:28 +0000
(20:32 +0000)
nptl/sysdeps/unix/sysv/linux/pthread_kill.c
patch
|
blob
|
history
diff --git
a/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
b/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
index
2caa728
..
a35a3f0
100644
(file)
--- 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);