aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/raise.c5
1 files changed, 5 insertions, 0 deletions
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);
}