Move oci and shim to execution package
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
c2a57e2b00
commit
fdbae36237
25 changed files with 1 additions and 1 deletions
15
execution/shim/containerd-shim/process_pdeathsig.go
Normal file
15
execution/shim/containerd-shim/process_pdeathsig.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
// +build !solaris
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// setPDeathSig sets the parent death signal to SIGKILL so that if the
|
||||
// shim dies the container process also dies.
|
||||
func setPDeathSig() *syscall.SysProcAttr {
|
||||
return &syscall.SysProcAttr{
|
||||
Pdeathsig: syscall.SIGKILL,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue