diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2017-12-22 13:22:02 +0000 |
---|---|---|
committer | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2017-12-22 13:29:00 +0000 |
commit | ac2bcb2cd5c6d5bb11201919658de4aa2b26788d (patch) | |
tree | 55ba9e15f7dec1175393324d1cfc9d21f1772e40 | |
parent | eae6d5c70781a7be3dd4cfa57be66a1a37311af0 (diff) | |
download | buildstream-ac2bcb2cd5c6d5bb11201919658de4aa2b26788d.tar.gz |
utils._call: rm unused assignments to exit_code
-rw-r--r-- | buildstream/utils.py | 3 |
1 files changed, 1 insertions, 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) |