summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-10-25 23:04:17 -0500
committerDanny Holman <dholman@gymli.org>2024-10-25 23:04:17 -0500
commit42bbbe9185019df04c6aaa05ba4e815bb2a1ab67 (patch)
tree892506ac47f5b15f430f6f226d032c86f61aeb5e /core
parentrender: add a skeleton DirectX implementation (diff)
downloadrune-engine-42bbbe9185019df04c6aaa05ba4e815bb2a1ab67.tar.gz
rune-engine-42bbbe9185019df04c6aaa05ba4e815bb2a1ab67.tar.zst
rune-engine-42bbbe9185019df04c6aaa05ba4e815bb2a1ab67.zip
core: call the system exit function when aborting
During an abort procedure, the system's exit function should be called to terminate the running application. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'core')
-rw-r--r--core/abort.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/abort.c b/core/abort.c
index 08f9d1c..edc7d29 100644
--- a/core/abort.c
+++ b/core/abort.c
@@ -32,4 +32,5 @@ void rune_abort(void) {
log_output(LOG_INFO, "Abort called, printing stack trace");
_stack_trace();
rune_exit();
+ exit(-1);
}