[Glibc-bsd-commits] r4705 - trunk/glibc-ports/fbtl

Petr Salinger ps-guest at alioth.debian.org
Tue Jul 9 19:30:57 UTC 2013


Author: ps-guest
Date: 2013-07-09 19:30:57 +0000 (Tue, 09 Jul 2013)
New Revision: 4705

Modified:
   trunk/glibc-ports/fbtl/nptl-init.c
Log:
ktid have to be initialized before pid, as positive pid is interpreted as valid ktid in other places


Modified: trunk/glibc-ports/fbtl/nptl-init.c
===================================================================
--- trunk/glibc-ports/fbtl/nptl-init.c	2013-07-09 19:18:38 UTC (rev 4704)
+++ trunk/glibc-ports/fbtl/nptl-init.c	2013-07-09 19:30:57 UTC (rev 4705)
@@ -305,8 +305,8 @@
   /* Minimal initialization of the thread descriptor.  */
   struct pthread *pd = THREAD_SELF;
 #if 1  
+  INLINE_SYSCALL(thr_self, 1, &(pd->ktid)); 
   pd->pid = __getpid();
-  INLINE_SYSCALL(thr_self, 1, &(pd->ktid)); 
 #else
   INTERNAL_SYSCALL_DECL (err);
   pd->pid = pd->tid = INTERNAL_SYSCALL (set_tid_address, err, 1, &pd->tid);




More information about the Glibc-bsd-commits mailing list