MCPcopy Create free account
hub / github.com/containerd/cgroups / getSubreaper

Function getSubreaper

cgroup2/utils.go:608–614  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

606}
607
608func getSubreaper() (int, error) {
609 var i uintptr
610 if err := unix.Prctl(unix.PR_GET_CHILD_SUBREAPER, uintptr(unsafe.Pointer(&i)), 0, 0, 0); err != nil {
611 return -1, err
612 }
613 return int(i), nil
614}

Callers 1

fallbackKillMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…