mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
sync: rename procResume -> procHooksDone
The old name was quite confusing, and with the addition of the procMountPlease sync message there are now multiple sync messages that are related to "resuming" runc-init. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
@@ -413,7 +413,7 @@ func syncParentHooks(pipe *os.File) error {
|
||||
return err
|
||||
}
|
||||
// Wait for parent to give the all-clear.
|
||||
return readSync(pipe, procResume)
|
||||
return readSync(pipe, procHooksDone)
|
||||
}
|
||||
|
||||
// syncParentSeccomp sends the fd associated with the seccomp file descriptor
|
||||
|
||||
@@ -568,7 +568,7 @@ func (p *initProcess) start() (retErr error) {
|
||||
}
|
||||
}
|
||||
// Sync with child.
|
||||
if err := writeSync(p.messageSockPair.parent, procResume); err != nil {
|
||||
if err := writeSync(p.messageSockPair.parent, procHooksDone); err != nil {
|
||||
return err
|
||||
}
|
||||
default:
|
||||
|
||||
@@ -23,7 +23,7 @@ type syncType string
|
||||
// --- no return synchronisation
|
||||
//
|
||||
// procHooks --> [run hooks]
|
||||
// <-- procResume
|
||||
// <-- procHooksDone
|
||||
//
|
||||
// procReady --> [final setup]
|
||||
// <-- procRun
|
||||
@@ -35,7 +35,7 @@ const (
|
||||
procReady syncType = "procReady"
|
||||
procRun syncType = "procRun"
|
||||
procHooks syncType = "procHooks"
|
||||
procResume syncType = "procResume"
|
||||
procHooksDone syncType = "procHooksDone"
|
||||
procSeccomp syncType = "procSeccomp"
|
||||
procSeccompDone syncType = "procSeccompDone"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user