From ac2bcb2cd5c6d5bb11201919658de4aa2b26788d Mon Sep 17 00:00:00 2001 From: Angelos Evripiotis Date: Fri, 22 Dec 2017 13:22:02 +0000 Subject: utils._call: rm unused assignments to exit_code --- buildstream/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildstream/utils.py b/buildstream/utils.py index a96a1a234..7e84dbbe0 100644 --- a/buildstream/utils.py +++ b/buildstream/utils.py @@ -831,9 +831,8 @@ def _call(*popenargs, terminate=False, **kwargs): proc = psutil.Process(process.pid) proc.terminate() - exit_code = None try: - exit_code = proc.wait(20) + proc.wait(20) except psutil.TimeoutExpired: # Did not terminate within the timeout: murder _kill_process_tree(process.pid) -- cgit v1.2.1