From c97c79aded8d313237e0952062a2cce71fb88eb5 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Wed, 5 Jun 2024 19:23:40 +0200 Subject: [PATCH] core/cgroup: check CGroupRuntime.cgroup_path rather than _realized for freezer The same check is used everywhere else. --- src/core/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cgroup.c b/src/core/cgroup.c index bb78ded3eb2..9296a5e4acb 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -5134,7 +5134,7 @@ int unit_cgroup_freezer_action(Unit *u, FreezerAction action) { unit_next_freezer_state(u, action, &next, &target); CGroupRuntime *crt = unit_get_cgroup_runtime(u); - if (!crt || !crt->cgroup_realized) { + if (!crt || !crt->cgroup_path) { /* No realized cgroup = nothing to freeze */ u->freezer_state = freezer_state_finish(next); return 0; -- 2.47.3