From f00d7add726f6a70cb52fbddb5fdf32584df28f1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 3 Feb 1998 18:30:05 +0000 Subject: Added call to libc_wrapup() in _exit. This fixes a problem where the atexit routines on the global reentrancy structure were not invoked. But it does not seem like a 100% correct solution. --- cpukit/libcsupport/src/newlibc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit') diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c index d6a7f6fd6b..ae5365aa39 100644 --- a/cpukit/libcsupport/src/newlibc.c +++ b/cpukit/libcsupport/src/newlibc.c @@ -355,6 +355,7 @@ int get_errno() #if !defined(pc386) void _exit(int status) { + libc_wrapup(); /* Why? XXX */ rtems_shutdown_executive(status); } #endif -- cgit v1.2.3