(raise): Use INTERNAL_SYSCALL if possible since gettid cannot fail.
authordrepper <drepper>
Thu, 28 Nov 2002 00:55:58 +0000 (00:55 +0000)
committerdrepper <drepper>
Thu, 28 Nov 2002 00:55:58 +0000 (00:55 +0000)
nptl/sysdeps/unix/sysv/linux/raise.c

index 009f32a..2a09d18 100644 (file)
@@ -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);
     }