Skip to content

Commit

Permalink
(pthread_handle_create): Initialize self-reference in descriptor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jul 15, 2002
1 parent 3dbd4a6 commit a4eaf7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions linuxthreads/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4eaf7f

Please sign in to comment.