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: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Tycho Andersen 2014-09-24 08:38:40 -05:00 committed by Stéphane Graber
parent a5475f8f44
commit c49ecd787d

View File

@ -3929,6 +3929,10 @@ out_unlock:
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)) {