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:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user