aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-15 10:11:42 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-15 10:11:42 +0000
commite798b60fe41bf8148e33daa1b96a1e841d72ce86 (patch)
tree51d3c79053e94b31c115478b2a87413244569844 /nptl/sysdeps
parent90491dc4bf7a2c4232565ea68c9bda1383f97ae6 (diff)
downloadglibc-e798b60fe41bf8148e33daa1b96a1e841d72ce86.tar
glibc-e798b60fe41bf8148e33daa1b96a1e841d72ce86.tar.gz
glibc-e798b60fe41bf8148e33daa1b96a1e841d72ce86.tar.bz2
glibc-e798b60fe41bf8148e33daa1b96a1e841d72ce86.zip
Update.
* sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't use INLINE_SYSCALL. Error number is returned, not -1.
Diffstat (limited to 'nptl/sysdeps')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/pthread_kill.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_kill.c b/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
index 2c31dd667a..0fce02a401 100644
--- a/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
+++ b/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -32,6 +32,11 @@ __pthread_kill (threadid, signo)
struct pthread *pd = (struct pthread *) threadid;
/* We have a special syscall to do the work. */
- return INLINE_SYSCALL (tkill, 2, pd->tid, signo);
+ INTERNAL_SYSCALL_DECL (err);
+
+ int val = INTERNAL_SYSCALL (tkill, err, 2, pd->tid, signo);
+
+ return (INTERNAL_SYSCALL_ERROR_P (val, err)
+ ? INTERNAL_SYSCALL_ERRNO (val, err) : 0);
}
strong_alias (__pthread_kill, pthread_kill)