lxccontainer: do_lxcapi_want_daemonize()

parent d03ab308
...@@ -638,12 +638,13 @@ static bool do_lxcapi_want_daemonize(struct lxc_container *c, bool state) ...@@ -638,12 +638,13 @@ static bool do_lxcapi_want_daemonize(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->daemonize = state; c->daemonize = 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