[CRIU] [PATCH] service: fix bug, when criu reports success on dump fail

Ruslan Kuprieiev kupruser at gmail.com
Wed Dec 18 03:11:13 PST 2013


cr_dump_tasks() may return not only -1 on fail.

Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 cr-service.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cr-service.c b/cr-service.c
index f1dbddb..2fa89a5 100644
--- a/cr-service.c
+++ b/cr-service.c
@@ -175,7 +175,7 @@ static int dump_using_req(int sk, CriuOpts *req)
 		goto exit;
 	}
 
-	if (cr_dump_tasks(req->pid) == -1)
+	if (cr_dump_tasks(req->pid))
 		goto exit;
 
 	success = true;
-- 
1.8.3.2



More information about the CRIU mailing list