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)
| 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. |
| 422 | func 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 |