]> sourceware.org Git - glibc.git/commitdiff
(pthread_handle_create): Initialize self-reference in descriptor.
authorUlrich Drepper <drepper@redhat.com>
Mon, 15 Jul 2002 02:02:58 +0000 (02:02 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 15 Jul 2002 02:02:58 +0000 (02:02 +0000)
linuxthreads/manager.c

index b52f65137f829f902b58c8f11060944bc158b418..1b84fb720d661baddf4de447c9c7b4748c1a941d 100644 (file)
@@ -635,6 +635,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
   new_thread_id = sseg + pthread_threads_counter;
   /* Initialize the thread descriptor.  Elements which have to be
      initialized to zero already have this value.  */
+  new_thread->p_header.data.tcb = new_thread;
   new_thread->p_tid = new_thread_id;
   new_thread->p_lock = &(__pthread_handles[sseg].h_lock);
   new_thread->p_cancelstate = PTHREAD_CANCEL_ENABLE;
This page took 0.041881 seconds and 5 git commands to generate.