[CRIU] [PATCH] service: Send dump resp in case of dump failure

Pavel Emelyanov xemul at parallels.com
Fri Jan 10 03:36:39 PST 2014


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>

---

diff --git a/cr-service.c b/cr-service.c
index ef199ef..decbd6c 100644
--- a/cr-service.c
+++ b/cr-service.c
@@ -186,7 +186,7 @@ static int dump_using_req(int sk, CriuOpts *req)
 
 	success = true;
 exit:
-	if (req->leave_running  || !self_dump) {
+	if (req->leave_running  || !self_dump || !success) {
 		if (send_criu_dump_resp(sk, success, false) == -1) {
 			pr_perror("Can't send response");
 			success = false;


More information about the CRIU mailing list