forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -355,6 +355,7 @@ int get_errno()
|
||||
#if !defined(pc386)
|
||||
void _exit(int status)
|
||||
{
|
||||
libc_wrapup(); /* Why? XXX */
|
||||
rtems_shutdown_executive(status);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -355,6 +355,7 @@ int get_errno()
|
||||
#if !defined(pc386)
|
||||
void _exit(int status)
|
||||
{
|
||||
libc_wrapup(); /* Why? XXX */
|
||||
rtems_shutdown_executive(status);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user