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

Method Pid

libcontainer/process.go:138–145  ·  view source on GitHub ↗

Pid returns the process ID

()

Source from the content-addressed store, hash-verified

136
137// Pid returns the process ID
138func (p *Process) Pid() (int, error) {
139 // math.MinInt32 is returned here, because it's invalid value
140 // for the kill() system call.
141 if p.ops == nil {
142 return math.MinInt32, errInvalidProcess
143 }
144 return p.ops.pid(), nil
145}
146
147// Signal sends a signal to the Process.
148func (p *Process) Signal(sig os.Signal) error {

Callers 5

TestEnterFunction · 0.95
testCheckpointFunction · 0.95
TestExecInUsernsFunction · 0.95
forwardMethod · 0.80
createPidFileFunction · 0.80

Calls 1

pidMethod · 0.65

Tested by 3

TestEnterFunction · 0.76
testCheckpointFunction · 0.76
TestExecInUsernsFunction · 0.76