Skip to content

Commit

Permalink
commands: use __cgroup_unfreeze() directly
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 26, 2021
1 parent d78b7f4 commit 389185d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lxc/commands.c
Expand Up @@ -897,7 +897,10 @@ static int lxc_cmd_stop_callback(int fd, struct lxc_cmd_req *req,
else
TRACE("Sent signal %d to pidfd %d", stopsignal, handler->pid);

ret = cgroup_ops->unfreeze(cgroup_ops, -1);
if (pure_unified_layout(cgroup_ops))
ret = __cgroup_unfreeze(cgroup_ops->unified->cgfd_limit, -1);
else
ret = cgroup_ops->unfreeze(cgroup_ops, -1);
if (ret)
WARN("Failed to unfreeze container \"%s\"", handler->name);

Expand Down

0 comments on commit 389185d

Please sign in to comment.