lxccontainer: do_lxcapi_want_close_all_fds()

parent 76cee3b4
...@@ -627,12 +627,13 @@ static bool do_lxcapi_want_close_all_fds(struct lxc_container *c, bool state) ...@@ -627,12 +627,13 @@ static bool do_lxcapi_want_close_all_fds(struct lxc_container *c, bool state)
{ {
if (!c || !c->lxc_conf) if (!c || !c->lxc_conf)
return false; return false;
if (container_mem_lock(c)) {
ERROR("Error getting mem lock"); if (container_mem_lock(c))
return false; return false;
}
c->lxc_conf->close_all_fds = state; c->lxc_conf->close_all_fds = state;
container_mem_unlock(c); container_mem_unlock(c);
return true; return true;
} }
......
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