summaryrefslogtreecommitdiffstats
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-01-21 00:00:38 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-01-23 21:40:54 +0100
commit020b2e41ea776cff73392da8084a0725b590d245 (patch)
tree3a77af1420cdd8dca15ec49f5123229415f668c2 /src/core/cgroup.h
parentbuild: add some coloring to --version output (diff)
downloadsystemd-020b2e41ea776cff73392da8084a0725b590d245.tar.xz
systemd-020b2e41ea776cff73392da8084a0725b590d245.zip
core: ensure init.scope is realized after drop-ins have been loaded
If we add a drop-in for init.scope (e.g.: to set some memory limit), it will be loaded long after the cgroup has already been realized. Do it again when creating the special unit.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index a6a3d186ac..d137e3af4f 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -264,6 +264,7 @@ int unit_realize_cgroup(Unit *u);
void unit_prune_cgroup(Unit *u);
int unit_watch_cgroup(Unit *u);
int unit_watch_cgroup_memory(Unit *u);
+void unit_add_to_cgroup_realize_queue(Unit *u);
void unit_release_cgroup(Unit *u);
/* Releases the cgroup only if it is recursively empty.