core: fix process exit status code
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9a940f2879
commit
cd5cad696d
1 changed files with 2 additions and 2 deletions
|
|
@ -315,7 +315,7 @@ pub fn start(core: *Mod) !void {
|
||||||
}
|
}
|
||||||
// Don't return, because Platform.run wouldn't either (marked noreturn due to underlying
|
// Don't return, because Platform.run wouldn't either (marked noreturn due to underlying
|
||||||
// platform APIs never returning.)
|
// platform APIs never returning.)
|
||||||
std.process.exit(1);
|
std.process.exit(0);
|
||||||
} else {
|
} else {
|
||||||
// Platform drives the main loop.
|
// Platform drives the main loop.
|
||||||
Platform.run(platform_update_callback, .{ &mach.mods.mod.mach_core, stack_space });
|
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
|
// 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
|
// accidentally introduce a different Platform.run in the future, we put an exit here for
|
||||||
// good measure.
|
// good measure.
|
||||||
std.process.exit(1);
|
std.process.exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue