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