mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
cgroup: use CGROUP_LIMIT_MAX where appropriate
This commit is contained in:
parent
f3a367d66c
commit
8793fa2565
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user