Skip to content

Commit

Permalink
cgroups: do not return early when entering monitor cgroups
Browse files Browse the repository at this point in the history
This will happen when restoring a container via criu.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 10, 2021
1 parent b3a4286 commit d1ee871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -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)
Expand Down

0 comments on commit d1ee871

Please sign in to comment.