[CRIU] [PATCH 1/8] sockets: sockest: Show collected socket once they get hashed

Cyrill Gorcunov gorcunov at openvz.org
Fri Jan 27 13:54:37 EST 2012


Otherwise debug printing has no inode number in report.
Not really it's that important but very convenient
if you need detailed output.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 sockets.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sockets.c b/sockets.c
index b76726c..6b10d1b 100644
--- a/sockets.c
+++ b/sockets.c
@@ -444,9 +444,10 @@ static int unix_collect_one(struct unix_diag_msg *m, struct rtattr **tb)
 		d->wqlen = rq->udiag_wqueue;
 	}
 
+	sk_collect_one(m->udiag_ino, AF_UNIX, &d->sd);
 	show_one_unix("Collected", d);
 
-	return sk_collect_one(m->udiag_ino, AF_UNIX, &d->sd);
+	return 0;
 
 err:
 	xfree(d->icons);
-- 
1.7.7.5



More information about the CRIU mailing list