[CRIU] [PATCH cr] zdtm: run test in a new session

Andrew Vagin avagin at parallels.com
Mon Sep 17 03:35:51 EDT 2012


ping

On Thu, Sep 13, 2012 at 03:02:25PM +0400, Andrey Vagin wrote:
> It was lost for tests which executed in a new namespaces.
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  test/zdtm/lib/ns.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/test/zdtm/lib/ns.c b/test/zdtm/lib/ns.c
> index 25f5fd7..b048128 100644
> --- a/test/zdtm/lib/ns.c
> +++ b/test/zdtm/lib/ns.c
> @@ -176,6 +176,8 @@ int ns_exec(void *_arg)
>  
>  	close(args->status_pipe[0]);
>  
> +	setsid();
> +
>  	system("ip link set up dev lo");
>  
>  	ret = dup2(args->status_pipe[1], STATUS_FD);
> -- 
> 1.7.1
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list