summaryrefslogtreecommitdiffstats
path: root/c/src/lib
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-03 18:30:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-03 18:30:05 +0000
commitf00d7add726f6a70cb52fbddb5fdf32584df28f1 (patch)
tree9aca218d310948f514975f3d3b78df928d1eb30a /c/src/lib
parentCorrected spelling error so interrupt driven console would work. (diff)
downloadrtems-f00d7add726f6a70cb52fbddb5fdf32584df28f1.tar.bz2
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.
Diffstat (limited to 'c/src/lib')
-rw-r--r--c/src/lib/libc/newlibc.c1
1 files changed, 1 insertions, 0 deletions
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