[lxc-devel] [PATCH 3/3] c/r: add more logging when restore fails
Serge Hallyn
serge.hallyn at ubuntu.com
Wed Dec 9 03:04:38 UTC 2015
Quoting Tycho Andersen (tycho.andersen at canonical.com):
> Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
> ---
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> src/lxc/criu.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/lxc/criu.c b/src/lxc/criu.c
> index 062289f..da909a9 100644
> --- a/src/lxc/criu.c
> +++ b/src/lxc/criu.c
> @@ -525,6 +525,7 @@ void do_restore(struct lxc_container *c, int pipe, char *directory, bool verbose
>
> if (WIFEXITED(status)) {
> if (WEXITSTATUS(status)) {
> + ERROR("criu process exited %d\n", WEXITSTATUS(status));
> goto out_fini_handler;
> } else {
> int ret;
> @@ -544,8 +545,10 @@ void do_restore(struct lxc_container *c, int pipe, char *directory, bool verbose
> goto out_fini_handler;
> }
>
> - if (lxc_set_state(c->name, handler, RUNNING))
> + if (lxc_set_state(c->name, handler, RUNNING)) {
> + ERROR("error setting running state after restore");
> goto out_fini_handler;
> + }
> }
> } else {
> ERROR("CRIU was killed with signal %d\n", WTERMSIG(status));
> --
> 2.6.2
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
More information about the lxc-devel
mailing list