Skip to content

Commit 3ab92dc

Browse files
committed
Improve inferrability of open(f, cmd, ...) (JuliaLang#46551)
This fixes invalidations from loading Static.jl
1 parent f4677b5 commit 3ab92dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/process.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ function open(f::Function, cmds::AbstractCmd, args...; kwargs...)
430430
rethrow()
431431
end
432432
close(P.in)
433-
if !eof(P.out)
433+
if !(eof(P.out)::Bool)
434434
waitkill(P)
435435
throw(_UVError("open(do)", UV_EPIPE))
436436
end

0 commit comments

Comments
 (0)