mirror of
https://github.com/moby/moby.git
synced 2026-07-06 14:48:57 +00:00
13 lines
261 B
Go
13 lines
261 B
Go
package libcontainerd
|
|
|
|
import "syscall"
|
|
|
|
// containerdSysProcAttr returns the SysProcAttr to use when exec'ing
|
|
// containerd
|
|
func containerdSysProcAttr() *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{
|
|
Setsid: true,
|
|
Pdeathsig: syscall.SIGKILL,
|
|
}
|
|
}
|