diff --git a/libcontainer/init_linux.go b/libcontainer/init_linux.go index a24be2768..71956d6da 100644 --- a/libcontainer/init_linux.go +++ b/libcontainer/init_linux.go @@ -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 diff --git a/libcontainer/process_linux.go b/libcontainer/process_linux.go index 8785d6570..9ea8ad5b2 100644 --- a/libcontainer/process_linux.go +++ b/libcontainer/process_linux.go @@ -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: diff --git a/libcontainer/sync.go b/libcontainer/sync.go index 25507e58a..36e657f66 100644 --- a/libcontainer/sync.go +++ b/libcontainer/sync.go @@ -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" )