mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
sk-unix: add more information messages
* A message about external sockets is printed before any action. * Add a message, when a peer is added in a list of sockets. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
1d6f3cce98
commit
0c72ab18e0
@@ -163,8 +163,10 @@ static int dump_one_unix_fd(int lfd, u32 id, const struct fd_parms *p)
|
||||
* It can be external socket, so we defer dumping
|
||||
* until all sockets the program owns are processed.
|
||||
*/
|
||||
if (!peer->sd.already_dumped)
|
||||
if (!peer->sd.already_dumped) {
|
||||
show_one_unix("Add a peer", peer);
|
||||
list_add_tail(&peer->list, &unix_sockets);
|
||||
}
|
||||
}
|
||||
} else if (ue.state == TCP_ESTABLISHED) {
|
||||
const struct unix_sk_listen_icon *e;
|
||||
@@ -388,6 +390,8 @@ int fix_external_unix_sockets(void)
|
||||
FownEntry fown = FOWN_ENTRY__INIT;
|
||||
SkOptsEntry skopts = SK_OPTS_ENTRY__INIT;
|
||||
|
||||
show_one_unix("Dumping extern", sk);
|
||||
|
||||
BUG_ON(sk->sd.already_dumped);
|
||||
|
||||
if (!opts.ext_unix_sk) {
|
||||
@@ -411,8 +415,6 @@ int fix_external_unix_sockets(void)
|
||||
e.fown = &fown;
|
||||
e.opts = &skopts;
|
||||
|
||||
show_one_unix("Dumping extern", sk);
|
||||
|
||||
if (pb_write_one(fdset_fd(glob_fdset, CR_FD_UNIXSK), &e, PB_UNIXSK))
|
||||
goto err;
|
||||
|
||||
|
Reference in New Issue
Block a user