Skip to content
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

Prevent silencing ExitFailure in ProcessContext->join() #207

Merged
merged 3 commits into from
Dec 21, 2024

Conversation

bwoebi
Copy link
Member

@bwoebi bwoebi commented Dec 20, 2024

If there was an ExitSuccess, it's expected to be 0. If no failure was present, then the exit code is the only thing to be reported.

But, if there was an ExitFailure, and the process did not cleanly exit, the failure most likely was the cause of the unclean exit and should be reported in any case.

I'm not sure whether returning or throwing is the best course of action, but possibly we should throw the failure after .. the join() call.

If there was an ExitSuccess, it's expected to be 0. If no failure was present, then the exit code is the only thing to be reported.

But, if there was an ExitFailure, and the process did not cleanly exit, the failure most likely was the cause of the unclean exit and should be reported in any case.
@trowski trowski merged commit 5113111 into 2.x Dec 21, 2024
14 checks passed
@trowski trowski deleted the report-join-result branch December 21, 2024 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants