[lxc-devel] [PATCH 1/2] allow lxcapi_get_cgroup_item() on lxc-execute containers
Dwight Engen
dwight.engen at oracle.com
Mon Nov 4 22:35:15 UTC 2013
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 at oracle.com>
---
src/lxc/lxccontainer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index ef828dc..89b45ed 100644
--- a/src/lxc/lxccontainer.c
+++ b/src/lxc/lxccontainer.c
@@ -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))
--
1.8.3.1
More information about the lxc-devel
mailing list