Skip to content

Process: handle HRESULT exit codes properly #3121

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

Merged
merged 1 commit into from
Dec 19, 2021

Conversation

compnerd
Copy link
Member

When a process terminates due to an unhandled exception via a HRESULT,
the process termination status will not have 0xC000_0000 or
0xE000_0000 but rather 0x8000_0000 set. This accounts for that and
properly classifies the exit as an abnormal exit. This was identified
by the swift-driver test suite not properly detecting an abnormal exit
of the frontend.

When a process terminates due to an unhandled exception via a `HRESULT`,
the process termination status will not have `0xC000_0000` or
`0xE000_0000` but rather `0x8000_0000` set.  This accounts for that and
properly classifies the exit as an abnormal exit.  This was identified
by the swift-driver test suite not properly detecting an abnormal exit
of the frontend.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit efedfc3 into swiftlang:main Dec 19, 2021
@compnerd compnerd deleted the hresult branch December 19, 2021 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant