Commit c49ecd78 by Tycho Andersen Committed by Stéphane Graber

lxc-checkpoint should fail if criu gets signal

The ->checkpoint() API call didn't exit correctly if criu was killed by a signal instead of exiting, so lxc-checkpoint didn't fail correctly as a result. Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent a5475f8f
...@@ -3929,6 +3929,10 @@ out_unlock: ...@@ -3929,6 +3929,10 @@ out_unlock:
goto out_fini_handler; goto out_fini_handler;
} }
} }
} else {
ERROR("CRIU was killed with signal %d\n", WTERMSIG(status));
error = true;
goto out_fini_handler;
} }
if (lxc_poll(c->name, handler)) { if (lxc_poll(c->name, handler)) {
......
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