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:
24b3e8f
)
(__pthread_kill): Fix last change.
author
drepper
<drepper>
Tue, 18 Feb 2003 21:02:24 +0000
(21:02 +0000)
committer
drepper
<drepper>
Tue, 18 Feb 2003 21:02:24 +0000
(21:02 +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
e1c79e7
..
ca6dfd8
100644
(file)
--- a/
nptl/sysdeps/unix/sysv/linux/pthread_kill.c
+++ b/
nptl/sysdeps/unix/sysv/linux/pthread_kill.c
@@
-36,9
+36,10
@@
__pthread_kill (threadid, signo)
/* The kernel returns EINVAL for PIDs <= 0. This is not nice since
the user would expect ESRCH. Correct it here. */
- int val = (pd->tid > 0
- ? INTERNAL_SYSCALL (tkill, err, 2, pd->tid, signo)
- : ESRCH);
+ if (pd->tid <= 0)
+ return ESRCH;
+
+ int val = INTERNAL_SYSCALL (tkill, err, 2, pd->tid, signo);
return (INTERNAL_SYSCALL_ERROR_P (val, err)
? INTERNAL_SYSCALL_ERRNO (val, err) : 0);