github.com/MaximeAubanel/moby@v1.13.1/libcontainerd/utils_solaris.go (about)

     1  package libcontainerd
     2  
     3  import (
     4  	"syscall"
     5  
     6  	containerd "github.com/docker/containerd/api/grpc/types"
     7  	"github.com/opencontainers/runtime-spec/specs-go"
     8  )
     9  
    10  func getRootIDs(s specs.Spec) (int, int, error) {
    11  	return 0, 0, nil
    12  }
    13  
    14  func systemPid(ctr *containerd.Container) uint32 {
    15  	var pid uint32
    16  	for _, p := range ctr.Processes {
    17  		if p.Pid == InitFriendlyName {
    18  			pid = p.SystemPid
    19  		}
    20  	}
    21  	return pid
    22  }
    23  
    24  // setPDeathSig sets the parent death signal to SIGKILL
    25  func setSysProcAttr(sid bool) *syscall.SysProcAttr {
    26  	return nil
    27  }