github.com/runcom/containerd@v0.0.0-20160708090337-9bff9f934c0d/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  }