From cd1f4defb2129c4718c07bdfdac0a41b1749e2c3 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 24 Feb 2018 15:17:31 +0100 Subject: [PATCH] lxccontainer: is_stopped() Signed-off-by: Christian Brauner --- src/lxc/lxccontainer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index dc5d8a409..db38d1797 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -464,6 +464,7 @@ WRAP_API(const char *, lxcapi_state) static bool is_stopped(struct lxc_container *c) { lxc_state_t s; + s = lxc_getstate(c->name, c->config_path); return (s == STOPPED); } -- 2.47.2