[CRIU] [PATCH 2/2] zdtm.sh: don't check path to ptmx

Andrey Vagin avagin at openvz.org
Tue Apr 1 05:51:26 PDT 2014


CRIU use a predefined path to open ptmx

-101 -> /dev/ptmx
+101 -> /dev/pts/ptmx

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/zdtm.sh b/test/zdtm.sh
index d7f8fca..da361ac 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -366,7 +366,11 @@ stop_test()
 save_fds()
 {
 	test -n "$PIDNS" && return 0
-	ls -l /proc/$1/fd | sed 's/\(-> \(pipe\|socket\)\):.*/\1/' | sed -e 's/\/.nfs[0-9a-zA-Z]*/.nfs-silly-rename/' | awk '{ print $9,$10,$11; }' > $2
+	ls -l /proc/$1/fd |
+		sed 's/\(-> \(pipe\|socket\)\):.*/\1/' |
+		sed -e 's/\/.nfs[0-9a-zA-Z]*/.nfs-silly-rename/' |
+		sed -e 's#/dev/\S*ptmx#ptmx#' |
+		awk '{ print $9,$10,$11; }' > $2
 }
 
 save_maps()
-- 
1.8.5.3



More information about the CRIU mailing list