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

Deprecate Process::Status#exit_status #8647

Merged
merged 7 commits into from
Dec 25, 2024
3 changes: 2 additions & 1 deletion src/process/status.cr
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ end
class Process::Status
# Platform-specific exit status code, which usually contains either the exit code or a termination signal.
# The other `Process::Status` methods extract the values from `exit_status`.
@[Deprecated("Use `#exit_reason`, `#exit_code`, or `#system_exit_status` instead")]
def exit_status : Int32
@exit_status.to_i32!
end
Expand Down Expand Up @@ -268,7 +269,7 @@ class Process::Status
# define __WEXITSTATUS(status) (((status) & 0xff00) >> 8)
(@exit_status & 0xff00) >> 8
{% else %}
exit_status
@exit_status.to_i32!
{% end %}
end

Expand Down
Loading