projects
/
kopensolaris-gnu
/
glibc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(pthread_barrier_wait): Don't save, load, and restore %esi for last thread.
[kopensolaris-gnu/glibc.git]
/
nptl
/
sysdeps
/
unix
/
sysv
/
linux
/
pthread_kill.c
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);