]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: do not return early when entering monitor cgroups
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 10 Feb 2021 19:15:48 +0000 (20:15 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 10 Feb 2021 19:20:33 +0000 (20:20 +0100)
This will happen when restoring a container via criu.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 3e92692b5a29497214cda38a2f86ed99765da1a8..eb58deaeed23c4390394caf37f2fdfae84a8a252 100644 (file)
@@ -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)