From 46bca9bd51bb44d727265f14f44063b6a9e31f38 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 15 Jun 2019 19:11:51 -0400 Subject: [PATCH] kernel: Make exit() stub truly non-returning. --- src/system/kernel/util/kernel_cpp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/util/kernel_cpp.cpp b/src/system/kernel/util/kernel_cpp.cpp index 4c064acb43..62f098b8d7 100644 --- a/src/system/kernel/util/kernel_cpp.cpp +++ b/src/system/kernel/util/kernel_cpp.cpp @@ -403,6 +403,7 @@ extern "C" void exit(int status) { - panic("exit() called with status code = %d!", status); + while (true) + panic("exit() called with status code = %d!", status); }