This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix linuxthreads libpthread.a


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]