Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 7bc205f

Browse files
odinugethaJeztah
authored andcommitted
Fix phrasing when referring to the freezer cgroup
Signed-off-by: Odin Ugedal <odin@ugedal.com> (cherry picked from commit 9c94e8260a82d6190204654e2285088c749930dc) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 9da49d0b993511c4e6e0f8f6192b258805475569 Component: engine
1 parent 371d044 commit 7bc205f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

components/engine/api/swagger.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4875,7 +4875,7 @@ paths:
48754875
Note that a running container can be _paused_. The `Running` and `Paused`
48764876
booleans are not mutually exclusive:
48774877
4878-
When pausing a container (on Linux), the cgroups freezer is used to suspend
4878+
When pausing a container (on Linux), the freezer cgroup is used to suspend
48794879
all processes in the container. Freezing the process requires the process to
48804880
be running. As a result, paused containers are both `Running` _and_ `Paused`.
48814881
@@ -5768,9 +5768,9 @@ paths:
57685768
post:
57695769
summary: "Pause a container"
57705770
description: |
5771-
Use the cgroups freezer to suspend all processes in a container.
5771+
Use the freezer cgroup to suspend all processes in a container.
57725772
5773-
Traditionally, when suspending a process the `SIGSTOP` signal is used, which is observable by the process being suspended. With the cgroups freezer the process is unaware, and unable to capture, that it is being suspended, and subsequently resumed.
5773+
Traditionally, when suspending a process the `SIGSTOP` signal is used, which is observable by the process being suspended. With the freezer cgroup the process is unaware, and unable to capture, that it is being suspended, and subsequently resumed.
57745774
operationId: "ContainerPause"
57755775
responses:
57765776
204:

components/engine/container/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
type State struct {
1818
sync.Mutex
1919
// Note that `Running` and `Paused` are not mutually exclusive:
20-
// When pausing a container (on Linux), the cgroups freezer is used to suspend
20+
// When pausing a container (on Linux), the freezer cgroup is used to suspend
2121
// all processes in the container. Freezing the process requires the process to
2222
// be running. As a result, paused containers are both `Running` _and_ `Paused`.
2323
Running bool

0 commit comments

Comments
 (0)