]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: make sure to use "infinity" in unit files, not "max"
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Jun 2016 18:05:14 +0000 (20:05 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 14 Jun 2016 17:50:38 +0000 (19:50 +0200)
THe latter is a kernelism, we only understand "infinity".

src/core/dbus-cgroup.c

index 5b94b5e575ce086ccc0e83ccccf2ff117ddc1ce7..fe035109e39f478203836d7c883da4ce99f76d02 100644 (file)
@@ -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);
                 }