Skip to content

Commit

Permalink
Deprecate status method of Proc in place of exitcode and signal` (
Browse files Browse the repository at this point in the history
  • Loading branch information
Altai-man committed Jul 6, 2021
1 parent 2bf5970 commit 249fdba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.c/Proc.pm6
Expand Up @@ -203,12 +203,12 @@ my class Proc {

# see https://github.com/rakudo/rakudo/issues/1366
# should be deprecated and removed
proto method status(|) {*}
proto method status(|) is DEPRECATED('exitcode and/or signal methods (status is to be removed in 2022.06)') {*}
multi method status($new_status) {
$!exitcode = $new_status +> 8;
$!signal = $new_status +& 0xFF;
}
multi method status(Proc:D:) {
multi method status(Proc:D:) {
self!wait-for-finish;
($!exitcode +< 8) +| $!signal
}
Expand Down

0 comments on commit 249fdba

Please sign in to comment.