aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-23 09:16:11 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-23 09:16:11 +0000
commitfd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1 (patch)
tree9424762e7186f406620afa8c76541fa261b99269 /nptl/pthread_create.c
parentb1b8e747d4c35ff924a0247041e276e1abf2faf7 (diff)
downloadglibc-fd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1.tar
glibc-fd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1.tar.gz
glibc-fd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1.tar.bz2
glibc-fd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1.zip
Update.
2003-02-23 Ulrich Drepper <drepper@redhat.com> * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock element to -1.
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 40a95c6f91..6ed5200e33 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -228,6 +228,9 @@ start_thread (void *arg)
pd->result = pd->start_routine (pd->arg);
}
+ /* The thread is exiting now. */
+ atomic_bit_set (&pd->cancelhandling, EXITING_BIT);
+
/* Clean up any state libc stored in thread-local variables. */
__libc_thread_freeres ();
@@ -267,9 +270,6 @@ start_thread (void *arg)
}
- /* The thread is exiting now. */
- atomic_bit_set (&pd->cancelhandling, EXITING_BIT);
-
/* If the thread is detached free the TCB. */
if (IS_DETACHED (pd))
/* Free the TCB. */