[CRIU] [PATCH] zdtm.py: tests should not inherite file descriptors from zdtm.py

Andrey Vagin avagin at openvz.org
Thu Dec 17 02:38:56 PST 2015


From: Andrew Vagin <avagin at virtuozzo.com>

Cc: Dmitry Safonov <dsafonov at odin.com>
Reported-by: Dmitry Safonov <dsafonov at odin.com>
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 test/zdtm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index c2d3ebc..728efa3 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -296,7 +296,7 @@ class zdtm_test:
 		if env:
 			env = dict(os.environ, **env)
 
-		s = subprocess.Popen(s_args, env = env, cwd = root)
+		s = subprocess.Popen(s_args, env = env, cwd = root, close_fds = True)
 		s.wait()
 
 	def __pidfile(self):
-- 
2.4.3



More information about the CRIU mailing list