diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-08-03 03:53:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-08-03 03:53:28 +0000 |
commit | 1f3f143e627ba38e05da328670a80b3ac8712e51 (patch) | |
tree | aa6614de58d63d277af13a170c26a7709218322d /linuxthreads/cancel.c | |
parent | 3db04c6ff75614f146c5b5152313dd17a7419468 (diff) | |
download | glibc-1f3f143e627ba38e05da328670a80b3ac8712e51.tar glibc-1f3f143e627ba38e05da328670a80b3ac8712e51.tar.gz glibc-1f3f143e627ba38e05da328670a80b3ac8712e51.tar.bz2 glibc-1f3f143e627ba38e05da328670a80b3ac8712e51.zip |
Update.
2002-08-02 Ulrich Drepper <drepper@redhat.com>
* cancel.c (__pthread_perform_cleanup) [USE_TLS && HAVE___THREAD]:
Don't use p_libc_specific element in thread descriptor.
Diffstat (limited to 'linuxthreads/cancel.c')
-rw-r--r-- | linuxthreads/cancel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linuxthreads/cancel.c b/linuxthreads/cancel.c index 5649bc41c6..47c0bfee04 100644 --- a/linuxthreads/cancel.c +++ b/linuxthreads/cancel.c @@ -202,8 +202,13 @@ void __pthread_perform_cleanup(char *currentframe) } /* And the TSD which needs special help. */ +#if !(USE_TLS && HAVE___THREAD) if (THREAD_GETMEM(self, p_libc_specific[_LIBC_TSD_KEY_RPC_VARS]) != NULL) __rpc_thread_destroy (); +#else + if (__libc_tsd_get (RPC_VARS) != NULL) + __rpc_thread_destroy (); +#endif } #ifndef SHARED |