[CRIU] [PATCH] zdtm: Use only fd names to find leaked descriptors

Cyrill Gorcunov gorcunov at openvz.org
Fri Feb 17 07:21:02 EST 2012


Otherwise, if test takes long times the date of file
access changed and diff fails then.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/zdtm.sh b/test/zdtm.sh
index 3120e41..7c1aecf 100644
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -51,7 +51,7 @@ ARGS=""
 
 save_fds()
 {
-	ls -l /proc/$1/fd | sed 's/\(-> \(pipe\|socket\)\):.*/\1/' > $2
+	ls -l /proc/$1/fd | sed 's/\(-> \(pipe\|socket\)\):.*/\1/' | awk '{ print $9,$10,$11; }' > $2
 }
 
 diff_fds()
-- 
1.7.7.6



More information about the CRIU mailing list