Skip to content

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

Merged
trowski merged 3 commits into2.xfrom
report-join-result
Dec 21, 2024
Merged

Prevent silencing ExitFailure in ProcessContext->join()#207
trowski merged 3 commits into2.xfrom
report-join-result

Conversation

@bwoebi
Copy link
Copy Markdown
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
@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