aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/pthread.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-18 08:13:18 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-18 08:13:18 +0000
commitc6df09adf24ef80a84ae81680604165e74779f54 (patch)
treeef59e1706a6df16988d8cec066440a42ea85746a /linuxthreads/pthread.c
parent9aaac141b33408ca6128cf7dd34a6b24b6a4f95e (diff)
downloadglibc-c6df09adf24ef80a84ae81680604165e74779f54.zip
glibc-c6df09adf24ef80a84ae81680604165e74779f54.tar.gz
glibc-c6df09adf24ef80a84ae81680604165e74779f54.tar.bz2
Update.
2000-07-18 Ulrich Drepper <drepper@redhat.com> * 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.
Diffstat (limited to 'linuxthreads/pthread.c')
-rw-r--r--linuxthreads/pthread.c8
1 files changed, 5 insertions, 3 deletions
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);
}
}