[PATCH] Fix linuxthreads libpthread.a

Jakub Jelinek jakub@redhat.com
Tue Oct 22 06:56:00 GMT 2002


Hi!

This change was done for pthread.c (__pthread_initialize_minimal) only.

2002-10-22  Jakub Jelinek  <jakub@redhat.com>

	* manager.c (pthread_start_thread): Call __uselocale even
	if [! SHARED].  Patch by Leon Kanter <leon@geon.donetsk.ua>.

--- libc/linuxthreads/manager.c.jj	2002-10-10 14:01:49.000000000 +0200
+++ libc/linuxthreads/manager.c	2002-10-22 15:57:13.000000000 +0200
@@ -283,7 +283,7 @@ pthread_start_thread(void *arg)
       __sched_setscheduler(THREAD_GETMEM(self, p_pid),
                            SCHED_OTHER, &default_params);
     }
-#if !(USE_TLS && HAVE___THREAD) && defined SHARED
+#if !(USE_TLS && HAVE___THREAD)
   /* Initialize thread-locale current locale to point to the global one.
      With __thread support, the variable's initializer takes care of this.  */
   __uselocale (LC_GLOBAL_LOCALE);

	Jakub



More information about the Libc-hacker mailing list