Commit f8a41688 by Tycho Andersen Committed by Stéphane Graber

c/r: add more logging when restore fails

parent e9195050
...@@ -525,6 +525,7 @@ void do_restore(struct lxc_container *c, int pipe, char *directory, bool verbose ...@@ -525,6 +525,7 @@ void do_restore(struct lxc_container *c, int pipe, char *directory, bool verbose
if (WIFEXITED(status)) { if (WIFEXITED(status)) {
if (WEXITSTATUS(status)) { if (WEXITSTATUS(status)) {
ERROR("criu process exited %d\n", WEXITSTATUS(status));
goto out_fini_handler; goto out_fini_handler;
} else { } else {
int ret; int ret;
...@@ -544,8 +545,10 @@ void do_restore(struct lxc_container *c, int pipe, char *directory, bool verbose ...@@ -544,8 +545,10 @@ void do_restore(struct lxc_container *c, int pipe, char *directory, bool verbose
goto out_fini_handler; 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; goto out_fini_handler;
}
} }
} else { } else {
ERROR("CRIU was killed with signal %d\n", WTERMSIG(status)); ERROR("CRIU was killed with signal %d\n", WTERMSIG(status));
......
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