about summary refs log tree commit diff
path: root/sunrpc/rpc_thread.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-02-22 01:58:06 +0000
committerRoland McGrath <roland@gnu.org>2003-02-22 01:58:06 +0000
commit2a3d906e217757e3cbb4f3c089a09a4cb9cb8f75 (patch)
tree967a444f29bb65b4c4b36b66f1b6a36c81b5359e /sunrpc/rpc_thread.c
parente8783fd53d5d673eab4500d2cac82601f2f802e0 (diff)
downloadglibc-2a3d906e217757e3cbb4f3c089a09a4cb9cb8f75.tar.gz
glibc-2a3d906e217757e3cbb4f3c089a09a4cb9cb8f75.tar.xz
glibc-2a3d906e217757e3cbb4f3c089a09a4cb9cb8f75.zip
* malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
	* sunrpc/rpc_thread.c: Likewise for text_set_element use.
	(__rpc_thread_destroy): Add it to __libc_subfreeres too.

	* include/resolv.h: Add libc_hidden_proto for __res_nclose.
	* resolv/res_init.c (__res_nclose): Add libc_hidden_def.
	(res_thread_freeres): New function, on __libc_thread_subfreeres and
	__libc_subfreeres.

	* malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
	* sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
Diffstat (limited to 'sunrpc/rpc_thread.c')
-rw-r--r--sunrpc/rpc_thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sunrpc/rpc_thread.c b/sunrpc/rpc_thread.c
index 9a3d4dbd0c..fbc1cf72fe 100644
--- a/sunrpc/rpc_thread.c
+++ b/sunrpc/rpc_thread.c
@@ -30,9 +30,13 @@ __rpc_thread_destroy (void)
 		free (tvp->authdes_cache_s);
 		free (tvp->authdes_lru_s);
 		free (tvp);
+		__libc_tsd_set (RPC_VARS, NULL);
 	}
 }
+#ifdef _LIBC_REENTRANT
 text_set_element (__libc_thread_subfreeres, __rpc_thread_destroy);
+#endif
+text_set_element (__libc_subfreeres, __rpc_thread_destroy);
 
 
 /*