diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-03-20 18:26:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-03-20 18:26:06 +0000 |
commit | 373e6a512c30b2e34ac4a6f5b154edf45f400b35 (patch) | |
tree | eb653da420e923bea1f9a5d66b856469f88017e9 /linuxthreads | |
parent | 55c910213e5af21ea4a1df7dadda4906a5c0a131 (diff) | |
download | glibc-373e6a512c30b2e34ac4a6f5b154edf45f400b35.tar glibc-373e6a512c30b2e34ac4a6f5b154edf45f400b35.tar.gz glibc-373e6a512c30b2e34ac4a6f5b154edf45f400b35.tar.bz2 glibc-373e6a512c30b2e34ac4a6f5b154edf45f400b35.zip |
Update.
2001-03-20 Ulrich Drepper <drepper@redhat.com>
* cancel.c (__pthread_perform_cleanup): Call __rpc_thread_destroy.
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/ChangeLog | 4 | ||||
-rw-r--r-- | linuxthreads/cancel.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index f4e37b4649..21402189c9 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,7 @@ +2001-03-20 Ulrich Drepper <drepper@redhat.com> + + * cancel.c (__pthread_perform_cleanup): Call __rpc_thread_destroy. + 2001-03-18 Ulrich Drepper <drepper@redhat.com> * Makefile: When generating DSO link with libc_nonshared.a. diff --git a/linuxthreads/cancel.c b/linuxthreads/cancel.c index b05d8bf66e..0ae0d12887 100644 --- a/linuxthreads/cancel.c +++ b/linuxthreads/cancel.c @@ -15,6 +15,7 @@ /* Thread cancellation */ #include <errno.h> +#include <rpc/rpc.h> #include "pthread.h" #include "internals.h" #include "spinlock.h" @@ -163,6 +164,10 @@ void __pthread_perform_cleanup(void) struct _pthread_cleanup_buffer * c; for (c = THREAD_GETMEM(self, p_cleanup); c != NULL; c = c->__prev) c->__routine(c->__arg); + + /* And the TSD which needs special help. */ + if (THREAD_GETMEM(self, p_libc_specific[_LIBC_TSD_KEY_RPC_VARS]) != NULL) + __rpc_thread_destroy (); } #ifndef SHARED |