github.com/panekj/cli@v0.0.0-20230304125325-467dd2f3797e/cli/connhelper/commandconn/session_unix.go (about) 1 //go:build !windows 2 // +build !windows 3 4 package commandconn 5 6 import ( 7 "os/exec" 8 ) 9 10 func createSession(cmd *exec.Cmd) { 11 // for supporting ssh connection helper with ProxyCommand 12 // https://github.com/docker/cli/issues/1707 13 cmd.SysProcAttr.Setsid = true 14 }