github.com/itscaro/cli@v0.0.0-20190705081621-c9db0fe93829/cli/connhelper/commandconn/session_unix.go (about)

     1  // +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  }