From 8793fa256506000e288bab2dd700634da9166dd1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 17 Jan 2018 15:39:16 +0100 Subject: [PATCH] cgroup: use CGROUP_LIMIT_MAX where appropriate --- src/core/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cgroup.c b/src/core/cgroup.c index c2c4ef1b428..86a05a87c76 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -1062,7 +1062,7 @@ CGroupMask cgroup_context_get_mask(CGroupContext *c) { mask |= CGROUP_MASK_DEVICES; if (c->tasks_accounting || - c->tasks_max != (uint64_t) -1) + c->tasks_max != CGROUP_LIMIT_MAX) mask |= CGROUP_MASK_PIDS; return mask;