From c49ecd787d2bf39d0445852115f66f29526151c6 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Wed, 24 Sep 2014 08:38:40 -0500 Subject: [PATCH] lxc-checkpoint should fail if criu gets signal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Stéphane Graber --- src/lxc/lxccontainer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index a73719166..94ecc6845 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -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)) {