Skip to content

Commit bfc74b2

Browse files
vtjnashtkelman
authored andcommitted
Apply patch from #11623 (comment)
1 parent a1901f6 commit bfc74b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/process.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,9 @@ end
465465

466466
function readbytes(cmd::AbstractCmd, stdin::AsyncStream=DevNull)
467467
(out,pc) = open(cmd, "r", stdin)
468+
bytes = readbytes(out)
468469
!success(pc) && pipeline_error(pc)
469-
return readbytes(out)
470+
return bytes
470471
end
471472

472473
function readall(cmd::AbstractCmd, stdin::AsyncStream=DevNull)

0 commit comments

Comments
 (0)