From c6df09adf24ef80a84ae81680604165e74779f54 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 18 Jul 2000 08:13:18 +0000 Subject: Update. 2000-07-18 Ulrich Drepper * intl/Makefile: Make sure tst-translit is run after tst-gettext. * locale/C-ctype.c: Add initializers for gap elements. * locale/programs/ld-ctype.c (ctype_output): Write out index entries for gap elements. --- linuxthreads/ChangeLog | 5 +++++ linuxthreads/pthread.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'linuxthreads') diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 10abc40..5d06c1c 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +2000-07-18 Jakub Jelinek + + * pthread.c (__pthread_initialize_manager): Lock + __pthread_manager_thread.p_lock before calling clone. + 2000-05-05 H.J. Lu * sysdeps/ia64/pt-machine.h (__compare_and_swap): Change it to diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c index d70e3f4..c264da5 100644 --- a/linuxthreads/pthread.c +++ b/linuxthreads/pthread.c @@ -450,6 +450,8 @@ int __pthread_initialize_manager(void) | __pthread_initial_thread.p_eventbuf.eventmask.event_bits[idx])) != 0) { + __pthread_lock(__pthread_manager_thread.p_lock, NULL); + #ifdef NEED_SEPARATE_REGISTER_STACK pid = __clone2(__pthread_manager_event, (void **) __pthread_manager_thread_bos, @@ -478,10 +480,10 @@ int __pthread_initialize_manager(void) /* Now call the function which signals the event. */ __linuxthreads_create_event (); - - /* Now restart the thread. */ - __pthread_unlock(__pthread_manager_thread.p_lock); } + + /* Now restart the thread. */ + __pthread_unlock(__pthread_manager_thread.p_lock); } } -- cgit v1.1