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: Kirill Tkhai <ktkhai@virtuozzo.com>

 criu/sk-unix.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Kirill Tkhai 2016-11-29 13:50:00 +03:00 committed by Pavel Emelyanov
parent a2225308c9
commit 3a18b4c984

View file

@ -743,7 +743,8 @@ int fix_external_unix_sockets(void)
FownEntry fown = FOWN_ENTRY__INIT;
SkOptsEntry skopts = SK_OPTS_ENTRY__INIT;
if (sk->sd.already_dumped)
if (sk->sd.already_dumped ||
list_empty(&sk->peer_list))
continue;
show_one_unix("Dumping extern", sk);