From: Daniel Lezcano Date: Tue, 30 Aug 2011 21:50:00 +0000 (+0200) Subject: Don't log an error when the container is stopped X-Git-Tag: lxc-0.8.0-rc2~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebdd307db73344fa51a552a10daa8d1fefe9794b;p=thirdparty%2Flxc.git Don't log an error when the container is stopped Signed-off-by: Daniel Lezcano --- 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");