2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

rpc: Split rpc req-s from rpc-resps

Now we don't have generic criu_msg thing -- instead, we have
explicit request (with per-type args) and explicit responce
(yet again -- with per-type args).

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-09-16 15:36:12 +04:00
parent d285be5ed7
commit e866b7c043
4 changed files with 48 additions and 37 deletions

View File

@@ -753,7 +753,6 @@ static int open_unixsk_standalone(struct unix_sk_info *ui)
int sks[2];
CriuDumpResp resp = CRIU_DUMP_RESP__INIT;
resp.success = true;
resp.has_restored = true;
resp.restored = true;
@@ -762,7 +761,7 @@ static int open_unixsk_standalone(struct unix_sk_info *ui)
return -1;
}
if (send_criu_dump_resp(sks[1], &resp) == -1)
if (send_criu_dump_resp(sks[1], true, &resp) == -1)
return -1;
close(sks[1]);