-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor process exit status handling with error codes
The code was changed to refactor the process exit status handling. This change was made due to the #![feature(exit_status_error)] feature not being stable yet. The new code now retrieves the exit code from the exit status and falls back to a custom error code (7900) if it's unavailable. A debug message is added to log the process exit code. The code then checks for non-zero exit codes and a specific error code (-1073740791), indicating the process was forcefully killed, in which case it won't bail. Otherwise, it raises an error with the non-zero exit code.
- Loading branch information
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters