Merge pull request #89855 from Alex2782/fix_exit_code_macos

Fix `EXIT_SUCCESS` on MacOS
This commit is contained in:
Rémi Verschelde 2024-03-24 21:23:24 +01:00 committed by GitHub
commit 5d08c2631c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,7 +80,7 @@ int main(int argc, char **argv) {
@autoreleasepool {
ret = Main::start();
}
if (ret) {
if (ret == EXIT_SUCCESS) {
os.run();
} else {
os.set_exit_code(EXIT_FAILURE);