mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-26 11:35:33 +00:00
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:
parent
a2225308c9
commit
3a18b4c984
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue