stop: Only freeze if freezer is available

Closes #2644 Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 36be8e6c
......@@ -654,6 +654,9 @@ static int lxc_cmd_stop_callback(int fd, struct lxc_cmd_req *req,
* lxc_unfreeze() would do another cmd (GET_CGROUP) which would
* deadlock us.
*/
if (cgroup_ops->get_cgroup(cgroup_ops, "freezer") == NULL)
return 0;
if (cgroup_ops->unfreeze(cgroup_ops))
return 0;
......
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