summaryrefslogtreecommitdiffhomepage
path: root/runsc/cgroup
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-06-10 23:35:27 +0000
committergVisor bot <gvisor-bot@google.com>2020-06-10 23:35:27 +0000
commit0de8908baf00b546cfd577ae2a4dcde6dfce2bd9 (patch)
treec95930d43ebe59e8a77cc05d99bcf572db566fae /runsc/cgroup
parentef590380ee452cede990a705e302ed918aaab301 (diff)
parent41d9e536d559a2066ed6c92ed30aa2757d3596bb (diff)
Merge release-20200522.0-122-g41d9e536d (automated)
Diffstat (limited to 'runsc/cgroup')
-rw-r--r--runsc/cgroup/cgroup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/cgroup/cgroup.go b/runsc/cgroup/cgroup.go
index ef01820ef..5698cab4f 100644
--- a/runsc/cgroup/cgroup.go
+++ b/runsc/cgroup/cgroup.go
@@ -545,7 +545,7 @@ func (*networkPrio) set(spec *specs.LinuxResources, path string) error {
type pids struct{}
func (*pids) set(spec *specs.LinuxResources, path string) error {
- if spec.Pids == nil {
+ if spec.Pids == nil || spec.Pids.Limit <= 0 {
return nil
}
val := strconv.FormatInt(spec.Pids.Limit, 10)