aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-11-28 00:56:18 +0000
committerUlrich Drepper <drepper@redhat.com>2002-11-28 00:56:18 +0000
commitdca99d27b7b39c3df67768c4b2ed057f70902f92 (patch)
tree86fa88440fc1d696c4fa5c76063fcb6aff9d061b /nptl
parentf78deea65fee170ed353a44764d53c55cced6000 (diff)
downloadglibc-dca99d27b7b39c3df67768c4b2ed057f70902f92.tar
glibc-dca99d27b7b39c3df67768c4b2ed057f70902f92.tar.gz
glibc-dca99d27b7b39c3df67768c4b2ed057f70902f92.tar.bz2
glibc-dca99d27b7b39c3df67768c4b2ed057f70902f92.zip
Update.
* sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if possible since gettid cannot fail.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog3
-rw-r--r--nptl/sysdeps/unix/sysv/linux/raise.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 842dedecaf..9113c2674d 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,5 +1,8 @@
2002-11-27 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
+ possible since gettid cannot fail.
+
* sysdeps/x86_64/pthreaddef.h: New file.
* sysdeps/i386/pthreaddef.h (gettid): Removed.
diff --git a/nptl/sysdeps/unix/sysv/linux/raise.c b/nptl/sysdeps/unix/sysv/linux/raise.c
index 009f32ad30..2a09d18f73 100644
--- a/nptl/sysdeps/unix/sysv/linux/raise.c
+++ b/nptl/sysdeps/unix/sysv/linux/raise.c
@@ -31,7 +31,12 @@ raise (sig)
pid_t selftid = pd->tid;
if (selftid == 0)
{
+ /* This system call is not supposed to fail. */
+#ifdef INTERNAL_SYSCALL
+ selftid = INTERNAL_SYSCALL (gettid, 0);
+#else
selftid = INLINE_SYSCALL (gettid, 0);
+#endif
THREAD_SETMEM (pd, tid, selftid);
}