Commit 4617b77e authored by Pavel Emelyanov's avatar Pavel Emelyanov

service: Send dump resp in case of dump failure

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
parent 5f9b8794
......@@ -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;
......
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