MCPcopy
hub / github.com/opencontainers/runc / GetParentDeathSignal

Function GetParentDeathSignal

libcontainer/system/linux.go:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func GetParentDeathSignal() (ParentDeathSignal, error) {
43 var sig int
44 if err := unix.Prctl(unix.PR_GET_PDEATHSIG, uintptr(unsafe.Pointer(&sig)), 0, 0, 0); err != nil {
45 return -1, err
46 }
47 return ParentDeathSignal(sig), nil
48}
49
50func SetKeepCaps() error {
51 if err := unix.Prctl(unix.PR_SET_KEEPCAPS, 1, 0, 0, 0); err != nil {

Callers 2

InitMethod · 0.92
RestoreMethod · 0.85

Calls 1

ParentDeathSignalTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…