From d1ee87192ef31ec073521eaafe50b4d356f27e94 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 10 Feb 2021 20:15:48 +0100 Subject: [PATCH] cgroups: do not return early when entering monitor cgroups This will happen when restoring a container via criu. Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 3e92692b5..eb58deaee 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1484,7 +1484,7 @@ __cgfsng_ops static bool cgfsng_monitor_enter(struct cgroup_ops *ops, return log_error_errno(false, errno, "Failed to enter cgroup \"%s\"", h->monitor_full_path); if (handler->transient_pid <= 0) - return true; + continue; ret = lxc_writeat(h->cgfd_mon, "cgroup.procs", transient, transient_len); if (ret) -- 2.47.2