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

Andrey Vagin avagin at openvz.org
Thu Sep 13 07:02:25 EDT 2012


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



More information about the CRIU mailing list