[CRIU] [PATCH] zdtm: suppress useless error messages
Andrei Vagin
avagin at virtuozzo.com
Wed Jan 31 21:14:11 MSK 2018
Applied, thanks!
On Sun, Jan 28, 2018 at 11:11:33PM +0300, Andrei Vagin wrote:
> From: Andrei Vagin <avagin at virtuozzo.com>
>
> Start test
> ./mxcsr --pidfile=mxcsr.pid --outfile=mxcsr.out
> Run criu dump
> Unable to kill 44: [Errno 3] No such process <--------------- this one
> Run criu restore
> Run criu dump
>
> Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
> ---
> test/zdtm.py | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/test/zdtm.py b/test/zdtm.py
> index 2abeb426d..8ed161471 100755
> --- a/test/zdtm.py
> +++ b/test/zdtm.py
> @@ -320,8 +320,7 @@ def wait_pid_die(pid, who, tmo = 30):
> while stime < tmo:
> try:
> os.kill(int(pid), 0)
> - except Exception, e:
> - print "Unable to kill %d: %s" % (pid, e)
> + except OSError, e:
> break
>
> print "Wait for %s(%d) to die for %f" % (who, pid, stime)
> --
> 2.13.6
>
More information about the CRIU
mailing list