From 53a7c00d77e488d35dbcdbae6db6760375508633 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Wed, 31 Aug 2022 14:12:01 +0200 Subject: [PATCH] Improve inferrability of `open(f, cmd, ...)` (#46551) This fixes invalidations from loading Static.jl (cherry picked from commit 7537cb3990355d3c08f2f15b82e4bf54ecac3e0f) --- base/process.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/process.jl b/base/process.jl index 016c495a76a8b..719d1d5436ada 100644 --- a/base/process.jl +++ b/base/process.jl @@ -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