Commit ebdd307d by Daniel Lezcano

Don't log an error when the container is stopped

parent e6238180
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment