-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Godot exiting with unexpected failure code #67421
Conversation
The exit code is initialized as EXIT_FAILURE to indicate failures during startup. Closing the Game window via the window manager does not change the exit code, so the program exists with EXIT_FAILURE. This PR set the exit code to EXIT_SUCCESS when initialization was successful just before starting the main loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me
Thanks! |
If there is a better way for fixing the problem, then please revert this PR. |
I'm not sure yet what's the right solution, I would need to look more into it. #81518 would add feature parity with the approach from this PR in Windows and macOS (but not other platforms, if it matters). |
as mentioned here, I'm not sure this is the right solution ;-) |
The exit code is initialized as
EXIT_FAILURE
to indicate failures during startup. Closing the Game window via the window manager does not change the exit code, so the program exits withEXIT_FAILURE
.This PR sets the exit code to
EXIT_SUCCESS
when initialization was successful just before starting the main loop.resolve #62898