summaryrefslogtreecommitdiffstats
path: root/src/core/slice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/slice.c')
-rw-r--r--src/core/slice.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/slice.c b/src/core/slice.c
index c453aa033e..4824a300d0 100644
--- a/src/core/slice.c
+++ b/src/core/slice.c
@@ -381,6 +381,9 @@ static int slice_freezer_action(Unit *s, FreezerAction action) {
}
UNIT_FOREACH_DEPENDENCY(member, s, UNIT_ATOM_SLICE_OF) {
+ if (!member->cgroup_realized)
+ continue;
+
if (action == FREEZER_FREEZE)
r = UNIT_VTABLE(member)->freeze(member);
else