]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 15 Feb 2003 10:11:42 +0000 (10:11 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 15 Feb 2003 10:11:42 +0000 (10:11 +0000)
* sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
use INLINE_SYSCALL.  Error number is returned, not -1.

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

index 4aa4bb6286a4c1b3487e3b79266eca23aa75d430..de931739695ce486e2ca08a056b34a638ee53167 100644 (file)
@@ -1,5 +1,8 @@
 2003-02-15  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't
+       use INLINE_SYSCALL.  Error number is returned, not -1.
+
        * pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb,
        and __deallocate_stack with internal_function.
        * pthread_create.c: Adjust definitions appropriately.
index 2c31dd667aac450bf91120d67c5c4d0984de3016..0fce02a401bfafa4e98ec10f273d71e68174de81 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -32,6 +32,11 @@ __pthread_kill (threadid, signo)
   struct pthread *pd = (struct pthread *) threadid;
 
   /* We have a special syscall to do the work.  */
-  return INLINE_SYSCALL (tkill, 2, pd->tid, signo);
+  INTERNAL_SYSCALL_DECL (err);
+
+  int val = INTERNAL_SYSCALL (tkill, err, 2, pd->tid, signo);
+
+  return (INTERNAL_SYSCALL_ERROR_P (val, err)
+         ? INTERNAL_SYSCALL_ERRNO (val, err) : 0);
 }
 strong_alias (__pthread_kill, pthread_kill)