2018-02-05 21:05:59 +00:00
|
|
|
package libcontainerd // import "github.com/docker/docker/libcontainerd"
|
2016-03-18 18:50:19 +00:00
|
|
|
|
2017-09-22 13:52:41 +00:00
|
|
|
import "syscall"
|
2016-06-07 07:45:21 +00:00
|
|
|
|
2017-09-22 13:52:41 +00:00
|
|
|
// containerdSysProcAttr returns the SysProcAttr to use when exec'ing
|
|
|
|
// containerd
|
|
|
|
func containerdSysProcAttr() *syscall.SysProcAttr {
|
2016-06-07 07:45:21 +00:00
|
|
|
return &syscall.SysProcAttr{
|
2017-09-22 13:52:41 +00:00
|
|
|
Setsid: true,
|
|
|
|
Pdeathsig: syscall.SIGKILL,
|
2016-06-07 07:45:21 +00:00
|
|
|
}
|
|
|
|
}
|