summaryrefslogtreecommitdiff
path: root/exit.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-07-31 02:16:34 +0000
committerrpj <rpj>1998-07-31 02:16:34 +0000
commitcc1a70f50a246ad33ecbc8f73d0bbc67ea89f1a7 (patch)
treec5126bec2ab25c271ce68abd52542e6a7ad2e6ae /exit.c
parent0bc99fb6243a64c6f9a4d503382e9125adeb85a0 (diff)
Fri Jul 31 00:05:45 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* 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().
Diffstat (limited to 'exit.c')
-rw-r--r--exit.c4
1 files changed, 2 insertions, 2 deletions
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,