diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2003-12-19 17:11:21 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2003-12-19 17:11:21 +0000 |
commit | 50bcce79ff3918bdda9520e0ad631d80df66bbb0 (patch) | |
tree | efbabd11f110e786f47c858d0d07235825295adc /lib/libc/stdlib/exit.c | |
parent | 61cf73b3ebdd6204f63ed93af04d4f396844e87c (diff) |
Notes
Diffstat (limited to 'lib/libc/stdlib/exit.c')
-rw-r--r-- | lib/libc/stdlib/exit.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libc/stdlib/exit.c b/lib/libc/stdlib/exit.c index 78c5f36c29e5..83abdbd5d506 100644 --- a/lib/libc/stdlib/exit.c +++ b/lib/libc/stdlib/exit.c @@ -61,17 +61,12 @@ void exit(status) int status; { - struct atexit *p; - int n; - /* Ensure that the auto-initialization routine is linked in: */ extern int _thread_autoinit_dummy_decl; _thread_autoinit_dummy_decl = 1; - for (p = __atexit; p; p = p->next) - for (n = p->ind; --n >= 0;) - (*p->fns[n])(); + __cxa_finalize(NULL); if (__cleanup) (*__cleanup)(); _exit(status); |