]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 28 Nov 2002 00:56:18 +0000 (00:56 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 28 Nov 2002 00:56:18 +0000 (00:56 +0000)
* sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if
possible since gettid cannot fail.

nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/raise.c

index 842dedecafbf71e0d57b641cfacf70cec7ce39fe..9113c2674db9aa0fd15dc02d69262d9360f00e05 100644 (file)
@@ -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.
index 009f32ad30fb8c0888965ace0bb2ab2fa255e7c8..2a09d18f73fb6045a83ecbbc8856ca249ea17343 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);
     }
 
This page took 0.050431 seconds and 5 git commands to generate.