[CRIU] [PATCH] zdtm.py: don't forget to wait a child process

Andrei Vagin avagin at openvz.org
Fri Aug 19 17:12:14 PDT 2016


From: Andrei Vagin <avagin at virtuozzo.com>

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 test/zdtm.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index 564d92c..b338a93 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -315,7 +315,9 @@ def decode_flav(i):
 def tail(path):
 	p = subprocess.Popen(['tail', '-n1', path],
 			stdout = subprocess.PIPE)
-	return p.stdout.readline()
+	out = p.stdout.readline()
+	p.wait()
+	return out
 
 
 def rpidfile(path):
-- 
2.7.4



More information about the CRIU mailing list