From: Tycho Andersen Date: Tue, 8 Dec 2015 23:08:11 +0000 (-0700) Subject: c/r: add more logging when restore fails X-Git-Tag: lxc-2.0.0.beta1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8a41688ec7a39d3151c846807c6d8ed8059d69d;p=thirdparty%2Flxc.git c/r: add more logging when restore fails Signed-off-by: Tycho Andersen Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/criu.c b/src/lxc/criu.c index 6f48493ae..5ca4f9ff7 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));