Merge pull request #3360 from danishprakash/remove-pausing

libcontainer: remove "pausing" state
This commit is contained in:
Sebastiaan van Stijn
2022-02-01 23:40:31 +01:00
committed by GitHub
2 changed files with 1 additions and 5 deletions

View File

@@ -20,8 +20,6 @@ const (
Created Status = iota Created Status = iota
// Running is the status that denotes the container exists and is running. // Running is the status that denotes the container exists and is running.
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 is the status that denotes the container exists, but all its processes are paused.
Paused Paused
// Stopped is the status that denotes the container does not have a created or running process. // 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" return "created"
case Running: case Running:
return "running" return "running"
case Pausing:
return "pausing"
case Paused: case Paused:
return "paused" return "paused"
case Stopped: case Stopped:

View File

@@ -99,7 +99,7 @@ type Container interface {
// Restore restores the checkpointed container to a running state using the criu(8) utility. // Restore restores the checkpointed container to a running state using the criu(8) utility.
Restore(process *Process, criuOpts *CriuOpts) error 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 // the execution of any user processes. Asynchronously, when the container finished being paused the
// state is changed to PAUSED. // state is changed to PAUSED.
// If the Container state is PAUSED, do nothing. // If the Container state is PAUSED, do nothing.