[Glibc-bsd-commits] r4508 - in trunk/glibc-ports: . linuxthreads

Petr Salinger ps-guest at alioth.debian.org
Thu May 30 17:59:47 UTC 2013


Author: ps-guest
Date: 2013-05-30 17:59:46 +0000 (Thu, 30 May 2013)
New Revision: 4508

Modified:
   trunk/glibc-ports/TODO.linuxthreads
   trunk/glibc-ports/linuxthreads/manager.c
Log:
apply kfreebsd/local-linuxthreads-ctype_init.diff


Modified: trunk/glibc-ports/TODO.linuxthreads
===================================================================
--- trunk/glibc-ports/TODO.linuxthreads	2013-05-30 17:51:42 UTC (rev 4507)
+++ trunk/glibc-ports/TODO.linuxthreads	2013-05-30 17:59:46 UTC (rev 4508)
@@ -15,6 +15,9 @@
 any/local-linuxthreads-semaphore_h.diff
 any/local-linuxthreads-thread_self.diff
 
+kfreebsd/local-linuxthreads-TLS-THREAD.diff
+kfreebsd/local-linuxthreads-ctype_init.diff
+kfreebsd/local-pthread_at_fork
 
 TODO:
 
@@ -24,8 +27,6 @@
 any/local-linuxthreads-tst-sighandler.diff
 any/local-linuxthreads-weak.diff
 
-kfreebsd/local-linuxthreads-TLS-THREAD.diff
-kfreebsd/local-linuxthreads-ctype_init.diff
 kfreebsd/local-linuxthreads-initfini.diff
 kfreebsd/local-linuxthreads-mutex-initializer.diff
 kfreebsd/local-linuxthreads-stackguard.diff
@@ -33,7 +34,6 @@
 
 kfreebsd/local-config_h_in.patch
 kfreebsd/submitted-libc_once.diff
-kfreebsd/local-pthread_at_fork
 
 amd64/local-linuxthreads-gscope.diff
 i386/local-linuxthreads-gscope.diff

Modified: trunk/glibc-ports/linuxthreads/manager.c
===================================================================
--- trunk/glibc-ports/linuxthreads/manager.c	2013-05-30 17:51:42 UTC (rev 4507)
+++ trunk/glibc-ports/linuxthreads/manager.c	2013-05-30 17:59:46 UTC (rev 4508)
@@ -114,6 +114,10 @@
 #ifdef INIT_THREAD_SELF
   INIT_THREAD_SELF(self, 1);
 #endif
+
+  /* Initialize pointers to locale data.  */
+  __ctype_init ();
+      
   /* Block all signals except __pthread_sig_cancel and SIGTRAP */
   sigfillset(&manager_mask);
   sigdelset(&manager_mask, __pthread_sig_cancel); /* for thread termination */
@@ -272,6 +276,11 @@
       __sched_setscheduler(THREAD_GETMEM(self, p_pid),
                            SCHED_OTHER, &default_params);
     }
+
+  /* Initialize pointers to locale data.  */
+  __ctype_init ();
+      
+    
   /* Initialize __resp.  */
   __resp = &self->p_res;
 




More information about the Glibc-bsd-commits mailing list