Commit c6b79bd3 authored by Pavel Emelyanov's avatar Pavel Emelyanov

service: Don't forget to send dump-failed message

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5f47e0a6
...@@ -161,9 +161,9 @@ static int dump_using_req(CriuDumpReq *req) ...@@ -161,9 +161,9 @@ static int dump_using_req(CriuDumpReq *req)
goto exit; goto exit;
} }
success = true;
exit:
if (req->has_leave_running && req->leave_running) { if (req->has_leave_running && req->leave_running) {
success = true;
exit:
if (send_criu_dump_resp(cr_service_client->sk_fd, if (send_criu_dump_resp(cr_service_client->sk_fd,
success, false) == -1) { success, false) == -1) {
pr_perror("Can't send response"); pr_perror("Can't send response");
...@@ -266,7 +266,7 @@ int cr_service(bool daemon_mode) ...@@ -266,7 +266,7 @@ int cr_service(bool daemon_mode)
} }
switch (msg->type) { switch (msg->type) {
case CRIU_REQ_TYPE__DUMP: case CRIU_REQ_TYPE__DUMP:
exit(dump_using_req(msg->dump)); exit(dump_using_req(msg->dump));
default: default:
......
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