Skip to content

Commit

Permalink
Eliminate nqp::readallfh in Proc.pm.
Browse files Browse the repository at this point in the history
It should use the IO::Pipe handle instead.
  • Loading branch information
jnthn committed May 30, 2017
1 parent c9347d4 commit c0b2b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Proc.pm
Expand Up @@ -157,7 +157,7 @@ sub QX($cmd, :$cwd = $*CWD, :$env) {
);
my $result;
try {
$result = nqp::p6box_s(nqp::readallfh($pio));
$result = IO::Pipe.new(:PIO($pio)).slurp;
$status := nqp::closefh_i($pio);
}
$result.DEFINITE
Expand Down

0 comments on commit c0b2b02

Please sign in to comment.