]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Don't log an error when the container is stopped
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 30 Aug 2011 21:50:00 +0000 (23:50 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 30 Aug 2011 21:50:00 +0000 (23:50 +0200)
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/commands.c

index ac75ae476ba3a25aa3d6b248a4ebfc5071b0e638..f323943192f8cd50bb798be515e790cdfec746fe 100644 (file)
@@ -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");