]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-checkpoint should fail if criu gets signal
authorTycho Andersen <tycho.andersen@canonical.com>
Wed, 24 Sep 2014 13:38:40 +0000 (08:38 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 24 Sep 2014 15:26:41 +0000 (11:26 -0400)
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@canonical.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c

index a737191660dcaaf243dc811cfc4302ebeaebdbe9..94ecc6845fa93b66093f5c959ae8859aec9ee083 100644 (file)
@@ -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)) {