From e547881e27f25789694bf0e3888eb4ab5b07b72a Mon Sep 17 00:00:00 2001 From: Patrick Daigle <114765035+pdaig@users.noreply.github.com> Date: Sun, 4 Dec 2022 22:09:17 -0500 Subject: [PATCH] Fix ssh process killed when context is done Signed-off-by: Patrick Daigle <114765035+pdaig@users.noreply.github.com> --- cli/connhelper/commandconn/commandconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/connhelper/commandconn/commandconn.go b/cli/connhelper/commandconn/commandconn.go index 95b5d6933f..a0b035c92a 100644 --- a/cli/connhelper/commandconn/commandconn.go +++ b/cli/connhelper/commandconn/commandconn.go @@ -37,7 +37,7 @@ func New(ctx context.Context, cmd string, args ...string) (net.Conn, error) { c commandConn err error ) - c.cmd = exec.CommandContext(ctx, cmd, args...) + c.cmd = exec.Command(cmd, args...) // we assume that args never contains sensitive information logrus.Debugf("commandconn: starting %s with %v", cmd, args) c.cmd.Env = os.Environ()