Skip to content

Commit

Permalink
lxccontainer: do_lxcapi_want_daemonize()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Aug 23, 2018
1 parent ed057bb commit 76cee3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lxc/lxccontainer.c
Expand Up @@ -611,12 +611,13 @@ static bool do_lxcapi_want_daemonize(struct lxc_container *c, bool state)
{
if (!c || !c->lxc_conf)
return false;
if (container_mem_lock(c)) {
ERROR("Error getting mem lock");

if (container_mem_lock(c))
return false;
}

c->daemonize = state;
container_mem_unlock(c);

return true;
}

Expand Down

0 comments on commit 76cee3b

Please sign in to comment.