Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Dec 9, 2024
1 parent a87305a commit dbb9e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/process/status.cr
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ class Process::Status
# Process.new("sleep", ["10"]).tap(&.terminate).wait.exit_code? # => nil
# ```
def exit_code? : Int32?
{% if flag?(:unix) %}
return unless normal_exit?
return unless normal_exit?

{% if flag?(:unix) %}
# define __WEXITSTATUS(status) (((status) & 0xff00) >> 8)
(@exit_status & 0xff00) >> 8
{% else %}
Expand Down

0 comments on commit dbb9e1c

Please sign in to comment.