From 7346dda3329e19a483929fad4b62dd6932a82019 Mon Sep 17 00:00:00 2001 From: danishprakash Date: Sat, 29 Jan 2022 14:15:19 +0530 Subject: [PATCH] libcontainer: remove "pausing" state Signed-off-by: danishprakash --- libcontainer/container.go | 4 ---- libcontainer/container_linux.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/libcontainer/container.go b/libcontainer/container.go index 300c9526c..c23281fb7 100644 --- a/libcontainer/container.go +++ b/libcontainer/container.go @@ -20,8 +20,6 @@ const ( Created Status = iota // Running is the status that denotes the container exists and is running. Running - // Pausing is the status that denotes the container exists, it is in the process of being paused. - Pausing // Paused is the status that denotes the container exists, but all its processes are paused. Paused // Stopped is the status that denotes the container does not have a created or running process. @@ -34,8 +32,6 @@ func (s Status) String() string { return "created" case Running: return "running" - case Pausing: - return "pausing" case Paused: return "paused" case Stopped: diff --git a/libcontainer/container_linux.go b/libcontainer/container_linux.go index 261f5a9f4..2ddd58343 100644 --- a/libcontainer/container_linux.go +++ b/libcontainer/container_linux.go @@ -100,7 +100,7 @@ type Container interface { // Restore restores the checkpointed container to a running state using the criu(8) utility. Restore(process *Process, criuOpts *CriuOpts) error - // If the Container state is RUNNING or CREATED, sets the Container state to PAUSING and pauses + // If the Container state is RUNNING or CREATED, sets the Container state to PAUSED and pauses // the execution of any user processes. Asynchronously, when the container finished being paused the // state is changed to PAUSED. // If the Container state is PAUSED, do nothing.