Skip to content

Commit

Permalink
Improve inferrability of open(f, cmd, ...) (JuliaLang#46551)
Browse files Browse the repository at this point in the history
This fixes invalidations from loading Static.jl
  • Loading branch information
ranocha committed Sep 7, 2022
1 parent f4677b5 commit 3ab92dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function open(f::Function, cmds::AbstractCmd, args...; kwargs...)
rethrow()
end
close(P.in)
if !eof(P.out)
if !(eof(P.out)::Bool)
waitkill(P)
throw(_UVError("open(do)", UV_EPIPE))
end
Expand Down

0 comments on commit 3ab92dc

Please sign in to comment.