utils_solaris.go 532 B

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