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

Method Wait

libcontainer/process.go:130–135  ·  view source on GitHub ↗

Wait waits for the process to exit. Wait releases any resources associated with the Process

()

Source from the content-addressed store, hash-verified

128// Wait waits for the process to exit.
129// Wait releases any resources associated with the Process
130func (p *Process) Wait() (*os.ProcessState, error) {
131 if p.ops == nil {
132 return nil, errInvalidProcess
133 }
134 return p.ops.wait()
135}
136
137// Pid returns the process ID
138func (p *Process) Pid() (int, error) {

Callers 15

Example_containerFunction · 0.95
runContainerFunction · 0.95
testPidnsInitKillFunction · 0.95
TestSeccompDenySyslogFunction · 0.95
testUpdateDevicesFunction · 0.95
TestExecInErrorFunction · 0.95
TestExecInTTYFunction · 0.95
forwardMethod · 0.80
terminateMethod · 0.80

Calls 1

waitMethod · 0.65

Tested by 15

Example_containerFunction · 0.76
runContainerFunction · 0.76
testPidnsInitKillFunction · 0.76
TestSeccompDenySyslogFunction · 0.76
testUpdateDevicesFunction · 0.76
TestExecInErrorFunction · 0.76
TestExecInTTYFunction · 0.76
waitProcessFunction · 0.64
testCheckpointFunction · 0.64