Commit 003cfcae authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

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

cr_dump_tasks() may return not only -1 on fail.
Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f4f80618
...@@ -175,7 +175,7 @@ static int dump_using_req(int sk, CriuOpts *req) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment