Skip to content

Commit

Permalink
Handle ProcessChain in open(f, cmd, ..) (JuliaLang#49166)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaeder authored and Xnartharax committed Apr 13, 2023
1 parent 3fc326c commit f05b635
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 f05b635

Please sign in to comment.