k3s/pkg/agent/containerd/command.go

16 lines
213 B
Go
Raw Normal View History

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