summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2017-12-22 13:22:02 +0000
committerAngelos Evripiotis <jevripiotis@bloomberg.net>2017-12-22 13:29:00 +0000
commitac2bcb2cd5c6d5bb11201919658de4aa2b26788d (patch)
tree55ba9e15f7dec1175393324d1cfc9d21f1772e40
parenteae6d5c70781a7be3dd4cfa57be66a1a37311af0 (diff)
downloadbuildstream-ac2bcb2cd5c6d5bb11201919658de4aa2b26788d.tar.gz
utils._call: rm unused assignments to exit_code
-rw-r--r--buildstream/utils.py3
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)