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

Method Restore

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

Source from the content-addressed store, hash-verified

15type ParentDeathSignal int
16
17func (p ParentDeathSignal) Restore() error {
18 if p == 0 {
19 return nil
20 }
21 current, err := GetParentDeathSignal()
22 if err != nil {
23 return err
24 }
25 if p == current {
26 return nil
27 }
28 return p.Set()
29}
30
31func (p ParentDeathSignal) Set() error {
32 return SetParentDeathSignal(uintptr(p))

Callers 1

testCheckpointFunction · 0.45

Calls 2

SetMethod · 0.95
GetParentDeathSignalFunction · 0.85

Tested by 1

testCheckpointFunction · 0.36