2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

service: Simplify dump-responce sending

We need 2 parameters only to form it properly.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-09-16 15:40:04 +04:00
parent e866b7c043
commit 5f47e0a67f
3 changed files with 9 additions and 20 deletions

View File

@@ -751,17 +751,13 @@ static int open_unixsk_standalone(struct unix_sk_info *ui)
*/
if (ui->ue->uflags & USK_SERVICE) {
int sks[2];
CriuDumpResp resp = CRIU_DUMP_RESP__INIT;
resp.has_restored = true;
resp.restored = true;
if (socketpair(PF_UNIX, ui->ue->type, 0, sks)) {
pr_perror("Can't create socketpair");
return -1;
}
if (send_criu_dump_resp(sks[1], true, &resp) == -1)
if (send_criu_dump_resp(sks[1], true, true) == -1)
return -1;
close(sks[1]);