2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-03 15:55:53 +00:00

service: fix bug, when criu reports success on dump fail

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

Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Ruslan Kuprieiev
2013-12-18 21:17:53 +04:00
committed by Pavel Emelyanov
parent f4f806186c
commit 003cfcae19

View File

@@ -175,7 +175,7 @@ static int dump_using_req(int sk, CriuOpts *req)
goto exit; goto exit;
} }
if (cr_dump_tasks(req->pid) == -1) if (cr_dump_tasks(req->pid))
goto exit; goto exit;
success = true; success = true;