summaryrefslogtreecommitdiff
path: root/boot/boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/boot.c')
-rw-r--r--boot/boot.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/boot/boot.c b/boot/boot.c
index 462243c3..7f28f6b3 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -105,7 +105,13 @@ restore_termstate ()
#define host_fstat fstat
typedef struct stat host_stat_t;
-#define host_exit exit
+
+void __attribute__ ((__noreturn__))
+host_exit (int status)
+{
+ restore_termstate ();
+ exit (status);
+}
#endif /* UX */