1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
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:
Ulrich Drepper
2003-02-23 09:16:11 +00:00
parent b1b8e747d4
commit fd1a0d0c7c
5 changed files with 40 additions and 26 deletions

View File

@ -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. */