mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
core: make sure to use "infinity" in unit files, not "max"
THe latter is a kernelism, we only understand "infinity".
This commit is contained in:
parent
cd0a7a8e58
commit
799ec13412
@ -849,7 +849,7 @@ int bus_cgroup_set_property(
|
||||
unit_invalidate_cgroup(u, CGROUP_MASK_MEMORY);
|
||||
|
||||
if (v == CGROUP_LIMIT_MAX)
|
||||
unit_write_drop_in_private_format(u, mode, name, "%s=max", name);
|
||||
unit_write_drop_in_private_format(u, mode, name, "%s=infinity", name);
|
||||
else
|
||||
unit_write_drop_in_private_format(u, mode, name, "%s=%" PRIu64, name, v);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user