From ebdd307db73344fa51a552a10daa8d1fefe9794b Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Tue, 30 Aug 2011 23:50:00 +0200 Subject: [PATCH] Don't log an error when the container is stopped Signed-off-by: Daniel Lezcano --- src/lxc/commands.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lxc/commands.c b/src/lxc/commands.c index ac75ae476..f32394319 100644 --- a/src/lxc/commands.c +++ b/src/lxc/commands.c @@ -131,10 +131,8 @@ pid_t get_init_pid(const char *name) int ret, stopped = 0; ret = lxc_command(name, &command, &stopped); - if (ret < 0 && stopped) { - ERROR("'%s' is not running", name); + if (ret < 0 && stopped) return -1; - } if (ret < 0) { ERROR("failed to send command"); -- 2.47.2