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:
10
sk-unix.c
10
sk-unix.c
@@ -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)
|
||||
|
Reference in New Issue
Block a user