mirror of
https://github.com/opencontainers/runc.git
synced 2025-11-03 09:51:06 +08:00
Merge pull request #3360 from danishprakash/remove-pausing
libcontainer: remove "pausing" state
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user