Skip to content

Commit 9b19cd2

Browse files
committed
config: linux: update description of PidsLimit
Fix a misleading comment for how PidsLimit works when given a limit of 0. In the PIDs controller, a limit of 0 is identical to a limit of 1, since it is not possible to impose a limit on 0 processes. As such, it makes no sense to distinguish the two values, rather the value 0 (which is also the default value of an integer in Go) should instead indicate no limit (which is the default for all new PIDs controllers). Signed-off-by: Aleksa Sarai <[email protected]>
1 parent ab4acc0 commit 9b19cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime_config_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ type CPU struct {
182182

183183
// Pids for Linux cgroup 'pids' resource management (Linux 4.3)
184184
type Pids struct {
185-
// Maximum number of PIDs. A value < 0 implies "no limit".
185+
// Maximum number of PIDs. A value <= 0 indicates "no limit".
186186
Limit int64 `json:"limit"`
187187
}
188188

0 commit comments

Comments
 (0)