Use subprocess_terminate on Runtime close
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 17 Nov 2017 00:35:02 +0000 (19:35 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 17 Nov 2017 00:35:02 +0000 (19:35 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
lttng_ivc/utils/runtime.py

index 264addc67f8667263071605658253faddaaad571..4d367d3c170a352df9042589d482220e4271a932 100644 (file)
@@ -267,13 +267,7 @@ class Runtime(object):
 
     def close(self):
         for key, subp in self.__subprocess.items():
-            subp.terminate()
-        for key, subp in self.__subprocess.items():
-            # TODO move timeout to settings
-            subp.wait(timeout=60)
-        for key, (stdout, stderr) in self.__stdout_stderr.items():
-            stdout.close()
-            stderr.close()
+            self.subprocess_terminate(key, check_return=False)
 
         # Always try to remove test module but do not perform check on return
         # value.
This page took 0.024202 seconds and 5 git commands to generate.