Commit 3a18b4c9 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Pavel Emelyanov

unix: Do not dump unused external sockets

Do not dump external sockets, that are not peers
for some processes sockets. We do not use them on
restore ==> we do not need to dump them.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>

 criu/sk-unix.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent a2225308
...@@ -743,7 +743,8 @@ int fix_external_unix_sockets(void) ...@@ -743,7 +743,8 @@ int fix_external_unix_sockets(void)
FownEntry fown = FOWN_ENTRY__INIT; FownEntry fown = FOWN_ENTRY__INIT;
SkOptsEntry skopts = SK_OPTS_ENTRY__INIT; SkOptsEntry skopts = SK_OPTS_ENTRY__INIT;
if (sk->sd.already_dumped) if (sk->sd.already_dumped ||
list_empty(&sk->peer_list))
continue; continue;
show_one_unix("Dumping extern", sk); show_one_unix("Dumping extern", sk);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment