Unverified Commit b324a255 by Stéphane Graber Committed by GitHub

Merge pull request #3539 from brauner/2020-09-17/fixes

commands: don't fail if unfreeze fails
parents 4226b2e5 8db8adea
...@@ -894,12 +894,11 @@ static int lxc_cmd_stop_callback(int fd, struct lxc_cmd_req *req, ...@@ -894,12 +894,11 @@ static int lxc_cmd_stop_callback(int fd, struct lxc_cmd_req *req,
else else
TRACE("Sent signal %d to pidfd %d", stopsignal, handler->pid); TRACE("Sent signal %d to pidfd %d", stopsignal, handler->pid);
rsp.ret = cgroup_ops->unfreeze(cgroup_ops, -1); ret = cgroup_ops->unfreeze(cgroup_ops, -1);
if (!rsp.ret) if (ret)
return 0; WARN("Failed to unfreeze container \"%s\"", handler->name);
ERROR("Failed to unfreeze container \"%s\"", handler->name); return 0;
rsp.ret = -errno;
} else { } else {
rsp.ret = -errno; rsp.ret = -errno;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment