From cd5cad696de8bf828d06d4db854afe537703a07d Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 27 Aug 2024 21:26:41 -0700 Subject: [PATCH] core: fix process exit status code Signed-off-by: Stephen Gutekanst --- src/Core.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core.zig b/src/Core.zig index e5c43a36..78e4d4ba 100644 --- a/src/Core.zig +++ b/src/Core.zig @@ -315,7 +315,7 @@ pub fn start(core: *Mod) !void { } // Don't return, because Platform.run wouldn't either (marked noreturn due to underlying // platform APIs never returning.) - std.process.exit(1); + std.process.exit(0); } else { // Platform drives the main loop. Platform.run(platform_update_callback, .{ &mach.mods.mod.mach_core, stack_space }); @@ -323,7 +323,7 @@ pub fn start(core: *Mod) !void { // Platform.run should be marked noreturn, so this shouldn't ever run. But just in case we // accidentally introduce a different Platform.run in the future, we put an exit here for // good measure. - std.process.exit(1); + std.process.exit(0); } }