]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
allow lxcapi_get_cgroup_item() on lxc-execute containers
authorDwight Engen <dwight.engen@oracle.com>
Mon, 4 Nov 2013 22:35:15 +0000 (17:35 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 5 Nov 2013 17:31:40 +0000 (12:31 -0500)
Containers started with lxc-execute may not have a conf, but
nothing in the implementation of lxcapi_get_cgroup_item()
actually needs/uses it, and it can be useful to get items out
of the containers' cgroup items.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c

index ef828dca2e64df3f73e8522c40ecef1f278d0423..89b45ede86c996794bebce01ba6edd09198b8490 100644 (file)
@@ -1977,7 +1977,7 @@ static int lxcapi_get_cgroup_item(struct lxc_container *c, const char *subsys, c
 {
        int ret;
 
-       if (!c || !c->lxc_conf)
+       if (!c)
                return -1;
 
        if (is_stopped(c))