diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-07-15 02:02:58 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-07-15 02:02:58 +0000 |
commit | a4eaf7fb25a063cf35629d1b704738e954a39d56 (patch) | |
tree | 8a5ea9d6329c3540c4345e7571bd9fc2c4b8e76a /linuxthreads | |
parent | 3dbd4a6f15b94b41f96fcb63a03ad080b19e7577 (diff) | |
download | glibc-a4eaf7fb25a063cf35629d1b704738e954a39d56.tar glibc-a4eaf7fb25a063cf35629d1b704738e954a39d56.tar.gz glibc-a4eaf7fb25a063cf35629d1b704738e954a39d56.tar.bz2 glibc-a4eaf7fb25a063cf35629d1b704738e954a39d56.zip |
(pthread_handle_create): Initialize self-reference in descriptor.
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c index b52f65137f..1b84fb720d 100644 --- a/linuxthreads/manager.c +++ b/linuxthreads/manager.c @@ -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; |