mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
Update.
* sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if possible since gettid cannot fail.
This commit is contained in:
parent
f78deea65f
commit
dca99d27b7
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user