Commit 305bc646 by Daniel Lezcano

Fail gracefully with attach

Fail when we try to attach to an non existing container Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 2b30b861
......@@ -65,8 +65,8 @@ pid_t get_init_pid(const char *name)
ret = lxc_command(name, &command, &stopped);
if (ret < 0 && stopped) {
INFO("'%s' is already stopped", name);
return 0;
ERROR("'%s' is not running", name);
return -1;
}
if (ret < 0) {
......
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