mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03: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
|
return err
|
||||||
}
|
}
|
||||||
// Wait for parent to give the all-clear.
|
// 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
|
// syncParentSeccomp sends the fd associated with the seccomp file descriptor
|
||||||
|
|||||||
@@ -568,7 +568,7 @@ func (p *initProcess) start() (retErr error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Sync with child.
|
// Sync with child.
|
||||||
if err := writeSync(p.messageSockPair.parent, procResume); err != nil {
|
if err := writeSync(p.messageSockPair.parent, procHooksDone); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ type syncType string
|
|||||||
// --- no return synchronisation
|
// --- no return synchronisation
|
||||||
//
|
//
|
||||||
// procHooks --> [run hooks]
|
// procHooks --> [run hooks]
|
||||||
// <-- procResume
|
// <-- procHooksDone
|
||||||
//
|
//
|
||||||
// procReady --> [final setup]
|
// procReady --> [final setup]
|
||||||
// <-- procRun
|
// <-- procRun
|
||||||
@@ -35,7 +35,7 @@ const (
|
|||||||
procReady syncType = "procReady"
|
procReady syncType = "procReady"
|
||||||
procRun syncType = "procRun"
|
procRun syncType = "procRun"
|
||||||
procHooks syncType = "procHooks"
|
procHooks syncType = "procHooks"
|
||||||
procResume syncType = "procResume"
|
procHooksDone syncType = "procHooksDone"
|
||||||
procSeccomp syncType = "procSeccomp"
|
procSeccomp syncType = "procSeccomp"
|
||||||
procSeccompDone syncType = "procSeccompDone"
|
procSeccompDone syncType = "procSeccompDone"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user