summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/unix/posix/startup/bspclean.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/unix/posix/startup/bspclean.c')
-rw-r--r--c/src/lib/libbsp/unix/posix/startup/bspclean.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/unix/posix/startup/bspclean.c b/c/src/lib/libbsp/unix/posix/startup/bspclean.c
index 22feedb7ad..47d9548694 100644
--- a/c/src/lib/libbsp/unix/posix/startup/bspclean.c
+++ b/c/src/lib/libbsp/unix/posix/startup/bspclean.c
@@ -22,6 +22,8 @@
#include <rtems.h>
#include <bsp.h>
+#include <stdio.h>
+
/*
* The app has "exited" (called rtems_shutdown_executive)
*/
@@ -33,5 +35,8 @@ void bsp_cleanup( void )
* By definition, rtems_fatal_error_occurred does not return.
*/
+fflush(stdout);
+fflush(stderr);
+
rtems_fatal_error_occurred(0);
}