Skip to content

Commit e4e2a9d

Browse files
authored
Merge pull request #3360 from danishprakash/remove-pausing
libcontainer: remove "pausing" state
2 parents e9190d3 + 7346dda commit e4e2a9d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

libcontainer/container.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ const (
2020
Created Status = iota
2121
// Running is the status that denotes the container exists and is running.
2222
Running
23-
// Pausing is the status that denotes the container exists, it is in the process of being paused.
24-
Pausing
2523
// Paused is the status that denotes the container exists, but all its processes are paused.
2624
Paused
2725
// 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 {
3432
return "created"
3533
case Running:
3634
return "running"
37-
case Pausing:
38-
return "pausing"
3935
case Paused:
4036
return "paused"
4137
case Stopped:

libcontainer/container_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ type Container interface {
9999
// Restore restores the checkpointed container to a running state using the criu(8) utility.
100100
Restore(process *Process, criuOpts *CriuOpts) error
101101

102-
// If the Container state is RUNNING or CREATED, sets the Container state to PAUSING and pauses
102+
// If the Container state is RUNNING or CREATED, sets the Container state to PAUSED and pauses
103103
// the execution of any user processes. Asynchronously, when the container finished being paused the
104104
// state is changed to PAUSED.
105105
// If the Container state is PAUSED, do nothing.

0 commit comments

Comments
 (0)