1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00

cgroup: use CGROUP_LIMIT_MAX where appropriate

This commit is contained in:
Lennart Poettering 2018-01-17 15:39:16 +01:00
parent f3a367d66c
commit 8793fa2565

View File

@ -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;