[CRIU] [PATCH 2/2] zdtm.sh: don't check path to ptmx
Pavel Emelyanov
xemul at parallels.com
Tue Apr 8 04:34:41 PDT 2014
On 04/01/2014 04:51 PM, Andrey Vagin wrote:
> CRIU use a predefined path to open ptmx
>
> -101 -> /dev/ptmx
> +101 -> /dev/pts/ptmx
How does this happen?
> 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()
>
More information about the CRIU
mailing list