Browse Source

Fix phrasing when referring to the freezer cgroup

Signed-off-by: Odin Ugedal <odin@ugedal.com>
Odin Ugedal 5 years ago
parent
commit
9c94e8260a
2 changed files with 4 additions and 4 deletions
  1. 3 3
      api/swagger.yaml
  2. 1 1
      container/state.go

+ 3 - 3
api/swagger.yaml

@@ -4873,7 +4873,7 @@ paths:
                       Note that a running container can be _paused_. The `Running` and `Paused`
                       Note that a running container can be _paused_. The `Running` and `Paused`
                       booleans are not mutually exclusive:
                       booleans are not mutually exclusive:
 
 
-                      When pausing a container (on Linux), the cgroups freezer is used to suspend
+                      When pausing a container (on Linux), the freezer cgroup is used to suspend
                       all processes in the container. Freezing the process requires the process to
                       all processes in the container. Freezing the process requires the process to
                       be running. As a result, paused containers are both `Running` _and_ `Paused`.
                       be running. As a result, paused containers are both `Running` _and_ `Paused`.
 
 
@@ -5764,9 +5764,9 @@ paths:
     post:
     post:
       summary: "Pause a container"
       summary: "Pause a container"
       description: |
       description: |
-        Use the cgroups freezer to suspend all processes in a container.
+        Use the freezer cgroup to suspend all processes in a container.
 
 
-        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.
+        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.
       operationId: "ContainerPause"
       operationId: "ContainerPause"
       responses:
       responses:
         204:
         204:

+ 1 - 1
container/state.go

@@ -17,7 +17,7 @@ import (
 type State struct {
 type State struct {
 	sync.Mutex
 	sync.Mutex
 	// Note that `Running` and `Paused` are not mutually exclusive:
 	// Note that `Running` and `Paused` are not mutually exclusive:
-	// When pausing a container (on Linux), the cgroups freezer is used to suspend
+	// When pausing a container (on Linux), the freezer cgroup is used to suspend
 	// all processes in the container. Freezing the process requires the process to
 	// all processes in the container. Freezing the process requires the process to
 	// be running. As a result, paused containers are both `Running` _and_ `Paused`.
 	// be running. As a result, paused containers are both `Running` _and_ `Paused`.
 	Running           bool
 	Running           bool