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

Function syncParentReady

libcontainer/init_linux.go:422–429  ·  view source on GitHub ↗

syncParentReady sends to the given pipe a JSON payload which indicates that the init is ready to Exec the child process. It then waits for the parent to indicate that it is cleared to Exec.

(pipe *syncSocket)

Source from the content-addressed store, hash-verified

420// the init is ready to Exec the child process. It then waits for the parent to
421// indicate that it is cleared to Exec.
422func syncParentReady(pipe *syncSocket) error {
423 // Tell parent.
424 if err := writeSync(pipe, procReady); err != nil {
425 return err
426 }
427 // Wait for parent to give the all-clear.
428 return readSync(pipe, procRun)
429}
430
431// syncParentHooks sends to the given pipe a JSON payload which indicates that
432// the parent should execute pre-start hooks. It then waits for the parent to

Callers 2

InitMethod · 0.85
InitMethod · 0.85

Calls 2

writeSyncFunction · 0.85
readSyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…