From cc1a70f50a246ad33ecbc8f73d0bbc67ea89f1a7 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 31 Jul 1998 02:16:34 +0000 Subject: Fri Jul 31 00:05:45 1998 Ross Johnson * tsd.c (pthread_key_create): Update to properly associate the destructor routine with the key. * exit.c (_pthread_vacuum): Add call to _pthread_destructor_pop_all(). --- exit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exit.c') diff --git a/exit.c b/exit.c index 93d8a0b..c66c9d4 100644 --- a/exit.c +++ b/exit.c @@ -16,8 +16,8 @@ _pthread_vacuum(void) _pthread_handler_pop_all(_PTHREAD_CLEANUP_STACK, _PTHREAD_HANDLER_EXECUTE); - _pthread_handler_pop_all(_PTHREAD_DESTRUCTOR_STACK, - _PTHREAD_HANDLER_EXECUTE); + /* Run all TSD key destructors. */ + _pthread_destructor_pop_all(); /* Pop any atfork handlers without executing them. */ _pthread_handler_pop_all(_PTHREAD_FORKPREPARE_STACK, -- cgit v1.2.3