From 7a0dff9dc7da5a549b707c34a77c0f18f4ff6da3 Mon Sep 17 00:00:00 2001 From: VAN BOSSUYT Nicolas Date: Sun, 10 Nov 2024 16:55:49 +0100 Subject: [PATCH] impl-posix: Fix exit codes. --- src/impls/impl-posix/entry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/impls/impl-posix/entry.h b/src/impls/impl-posix/entry.h index b8f16df75b..acfbdbdc9c 100644 --- a/src/impls/impl-posix/entry.h +++ b/src/impls/impl-posix/entry.h @@ -13,7 +13,7 @@ int main(int argc, char const **argv) { Res<> code = Sys::run(entryPointAsync(ctx)); if (not code) { Karm::Sys::errln("{}: {}", argv[0], code); - return 1; + return EXIT_FAILURE; } - return 0; + return EXIT_SUCCESS; }