Skip to content

Commit 329f92c

Browse files
authored
Handle ProcessChain in open(f, cmd, ..) (#49166)
1 parent 001505a commit 329f92c

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
@@ -413,7 +413,7 @@ process failed, or if the process attempts to print anything to stdout.
413413
"""
414414
function open(f::Function, cmds::AbstractCmd, args...; kwargs...)
415415
P = open(cmds, args...; kwargs...)
416-
function waitkill(P::Process)
416+
function waitkill(P::Union{Process,ProcessChain})
417417
close(P)
418418
# 0.1 seconds after we hope it dies (from closing stdio),
419419
# we kill the process with SIGTERM (15)

0 commit comments

Comments
 (0)