We can e.g. fail the unfreeze because the freezer cgroup is not available and
then we erronously report that stopping the container failed.
Closes: #3471.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
else
TRACE("Sent signal %d to pidfd %d", stopsignal, handler->pid);
- rsp.ret = cgroup_ops->unfreeze(cgroup_ops, -1);
- if (!rsp.ret)
- return 0;
+ ret = cgroup_ops->unfreeze(cgroup_ops, -1);
+ if (ret)
+ WARN("Failed to unfreeze container \"%s\"", handler->name);
- ERROR("Failed to unfreeze container \"%s\"", handler->name);
- rsp.ret = -errno;
+ return 0;
} else {
rsp.ret = -errno;
}