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

Preserve the full exit code range in the system.process layer. #1489

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

BillyONeal
Copy link
Member

@BillyONeal BillyONeal commented Sep 11, 2024

Resolves a recent concern raised internally where tar.exe failed with some exit code that was larger than INT_MAX which got smashed by:

if (long_exit_code > INT_MAX) long_exit_code = INT_MAX;

Related: #1488
Related: microsoft/vcpkg#40850

Resolves a recent concern raised internally where tar.exe failed with some exit code that was larger than INT_MAX which got smashed by:

https://github.com/microsoft/vcpkg-tool/blob/ee9a2545111704c900b164680b98391f1bf78c59/src/vcpkg/base/system.process.cpp#L1426
@WangWeiLin-MV WangWeiLin-MV linked an issue Sep 12, 2024 that may be closed by this pull request
@BillyONeal BillyONeal merged commit a65b710 into microsoft:main Sep 13, 2024
6 checks passed
@BillyONeal BillyONeal deleted the process-exit-code branch September 13, 2024 03:15
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.

Negative exit codes get clobbered by INT_MAX
2 participants