]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/cgroup: drop outdated comment 38089/head
authorMike Yuan <me@yhndnzj.com>
Thu, 5 Jun 2025 00:14:15 +0000 (02:14 +0200)
committerMike Yuan <me@yhndnzj.com>
Sat, 5 Jul 2025 20:26:23 +0000 (22:26 +0200)
src/core/cgroup.c

index ae322eead0928cec4cdc79a9570f7b569ec9187e..ca3970597221d88b55f392f5226067b4f1b59548 100644 (file)
@@ -1993,8 +1993,7 @@ static int unit_watch_cgroup(Unit *u) {
 
         assert(u);
 
-        /* Watches the "cgroups.events" attribute of this unit's cgroup for "empty" events, but only if
-         * cgroupv2 is available. */
+        /* Watches the "cgroups.events" attribute of this unit's cgroup for "empty" events. */
 
         CGroupRuntime *crt = unit_get_cgroup_runtime(u);
         if (!crt || !crt->cgroup_path)
@@ -2038,8 +2037,7 @@ static int unit_watch_cgroup_memory(Unit *u) {
 
         assert(u);
 
-        /* Watches the "memory.events" attribute of this unit's cgroup for "oom_kill" events, but only if
-         * cgroupv2 is available. */
+        /* Watches the "memory.events" attribute of this unit's cgroup for "oom_kill" events. */
 
         CGroupRuntime *crt = unit_get_cgroup_runtime(u);
         if (!crt || !crt->cgroup_path)