about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-10-03 21:49:07 +0000
committerJakub Jelinek <jakub@redhat.com>2005-10-03 21:49:07 +0000
commit74b2c78b9216d1d1642261da42bbe64544a667aa (patch)
tree3602a41db957e440398af1de9de0115bd81098ed /nptl
parent0f83c07944666f0d88922469988d6042b530df12 (diff)
downloadglibc-74b2c78b9216d1d1642261da42bbe64544a667aa.tar.gz
glibc-74b2c78b9216d1d1642261da42bbe64544a667aa.tar.xz
glibc-74b2c78b9216d1d1642261da42bbe64544a667aa.zip
* allocatestack.c (setxid_signal_thread): Add cvs/fedora-glibc-2_3_90-13
	INTERNAL_SYSCALL_DECL (err).
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/allocatestack.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index c17d058c3b..815d4b5ebd 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-03  Jakub Jelinek  <jakub@redhat.com>
+
+	* allocatestack.c (setxid_signal_thread): Add
+	INTERNAL_SYSCALL_DECL (err).
+
 2005-10-02  Jakub Jelinek  <jakub@redhat.com>
 
 	* allocatestack.c (setxid_signal_thread): Need to use
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index f0dddf051d..255129a1df 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -839,6 +839,7 @@ setxid_signal_thread (struct xid_command *cmdp, struct pthread *t)
     }
 
   int val;
+  INTERNAL_SYSCALL_DECL (err);
 #if __ASSUME_TGKILL
   val = INTERNAL_SYSCALL (tgkill, err, 3, THREAD_GETMEM (THREAD_SELF, pid),
 			  t->tid, SIGSETXID);
@@ -867,8 +868,6 @@ __nptl_setxid (struct xid_command *cmdp)
   __xidcmd = cmdp;
   cmdp->cntr = 0;
 
-  INTERNAL_SYSCALL_DECL (err);
-
   struct pthread *self = THREAD_SELF;
 
   /* Iterate over the list with system-allocated threads first.  */
@@ -901,6 +900,7 @@ __nptl_setxid (struct xid_command *cmdp)
 
   /* This must be last, otherwise the current thread might not have
      permissions to send SIGSETXID syscall to the other threads.  */
+  INTERNAL_SYSCALL_DECL (err);
   result = INTERNAL_SYSCALL_NCS (cmdp->syscall_no, err, 3,
 				 cmdp->id[0], cmdp->id[1], cmdp->id[2]);
   if (INTERNAL_SYSCALL_ERROR_P (result, err))