Unverified Commit f3672cf1 by Christian Brauner Committed by GitHub

Merge pull request #2645 from stgraber/master

stop: Only freeze if freezer is available
parents 36be8e6c d18d43da
...@@ -654,6 +654,9 @@ static int lxc_cmd_stop_callback(int fd, struct lxc_cmd_req *req, ...@@ -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 * lxc_unfreeze() would do another cmd (GET_CGROUP) which would
* deadlock us. * deadlock us.
*/ */
if (cgroup_ops->get_cgroup(cgroup_ops, "freezer") == NULL)
return 0;
if (cgroup_ops->unfreeze(cgroup_ops)) if (cgroup_ops->unfreeze(cgroup_ops))
return 0; 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