Skip to content

Commit

Permalink
Handle ProcessChain in open(f, cmd, ..) (#49166)
Browse files Browse the repository at this point in the history
(cherry picked from commit 329f92c)
  • Loading branch information
hexaeder authored and KristofferC committed Mar 30, 2023
1 parent c4ab115 commit 5d17f1c
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 @@ -413,7 +413,7 @@ process failed, or if the process attempts to print anything to stdout.
"""
function open(f::Function, cmds::AbstractCmd, args...; kwargs...)
P = open(cmds, args...; kwargs...)
function waitkill(P::Process)
function waitkill(P::Union{Process,ProcessChain})
close(P)
# 0.1 seconds after we hope it dies (from closing stdio),
# we kill the process with SIGTERM (15)
Expand Down

0 comments on commit 5d17f1c

Please sign in to comment.