Skip to content

Commit

Permalink
Deprecate Process::Status#exit_status (#8647)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Müller <[email protected]>
  • Loading branch information
jwoertink and straight-shoota authored Dec 25, 2024
1 parent c38f4df commit 4772066
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 4772066

Please sign in to comment.