github.com/georgethebeatle/containerd@v0.2.5/containerd-shim/process_pdeathsig.go (about)

     1  // +build !solaris
     2  
     3  package main
     4  
     5  import (
     6  	"syscall"
     7  )
     8  
     9  // setPDeathSig sets the parent death signal to SIGKILL so that if the
    10  // shim dies the container process also dies.
    11  func setPDeathSig() *syscall.SysProcAttr {
    12  	return &syscall.SysProcAttr{
    13  		Pdeathsig: syscall.SIGKILL,
    14  	}
    15  }