k3s/pkg/agent/containerd/command.go

16 lines
214 B
Go
Raw Normal View History

//go:build !windows
2020-02-23 08:48:26 +00:00
package containerd
import (
"os/exec"
"syscall"
)
func addDeathSig(cmd *exec.Cmd) {
// not supported in this OS
cmd.SysProcAttr = &syscall.SysProcAttr{
Pdeathsig: syscall.SIGKILL,
}
}