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

collect: Shorten common images collecting code

Now we have a set of cinfo-s, it's possible to collect all
this stuff in a plan for-loop.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-08-21 03:52:18 +04:00
parent 64e7d2435a
commit 60e6d38868
24 changed files with 50 additions and 134 deletions

View File

@@ -836,15 +836,7 @@ struct collect_image_info unix_sk_cinfo = {
int collect_unix_sockets(void)
{
int ret;
pr_info("Reading unix sockets in\n");
ret = collect_image(&unix_sk_cinfo);
if (!ret)
ret = read_sk_queues();
return ret;
return read_sk_queues();
}
int resolve_unix_peers(void)