mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2003-02-23 Ulrich Drepper <drepper@redhat.com> * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock element to -1.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user