[CRIU] [crtools-bot] sockets: sockest: Show collected socket once they get hashed

Cyrill Gorcunov gorcunov at openvz.org
Fri Jan 27 14:23:17 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit ff83500f5c0531199e0aed69eff277bc9e9160e2
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Thu Jan 26 13:19:04 2012 +0400

    sockets: sockest: Show collected socket once they get hashed
    
    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>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
 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);


More information about the CRIU mailing list