[lxc-devel] [PATCH 1/2] lxc-checkpoint should fail if criu gets signal

Tycho Andersen tycho.andersen at canonical.com
Wed Sep 24 13:38:40 UTC 2014


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 at canonical.com>
---
 src/lxc/lxccontainer.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index a737191..94ecc68 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)) {
-- 
1.9.1



More information about the lxc-devel mailing list