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. --- c/src/exec/libcsupport/src/newlibc.c | 1 + c/src/lib/libc/newlibc.c | 1 + 2 files changed, 2 insertions(+) (limited to 'c/src') diff --git a/c/src/exec/libcsupport/src/newlibc.c b/c/src/exec/libcsupport/src/newlibc.c index d6a7f6fd6b..ae5365aa39 100644 --- a/c/src/exec/libcsupport/src/newlibc.c +++ b/c/src/exec/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 diff --git a/c/src/lib/libc/newlibc.c b/c/src/lib/libc/newlibc.c index d6a7f6fd6b..ae5365aa39 100644 --- a/c/src/lib/libc/newlibc.c +++ b/c/src/lib/libc/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