abra/pkg/upstream/commandconn/pdeathsig_linux.go
decentral1se de7054fd74
Some checks reported errors
continuous-integration/drone/push Build was killed
fix: use x-platform code for pdeathsig
This might cause the macosx build not to fail, I hope.

See https://github.com/docker/cli/tree/v20.10.10/cli/connhelper/commandconn
2021-11-03 09:57:35 +01:00

11 lines
137 B
Go

package commandconn
import (
"os/exec"
"syscall"
)
func setPdeathsig(cmd *exec.Cmd) {
cmd.SysProcAttr.Pdeathsig = syscall.SIGKILL
}