k3s/pkg/agent/containerd/command.go
2020-02-23 00:48:26 -08:00

16 lines
213 B
Go

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