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