()
| 40 | } |
| 41 | |
| 42 | func 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 | |
| 50 | func SetKeepCaps() error { |
| 51 | if err := unix.Prctl(unix.PR_SET_KEEPCAPS, 1, 0, 0, 0); err != nil { |
no test coverage detected
searching dependent graphs…