Browse Source

Don't overwrite incoming parameters

Hamilton Turner 10 years ago
parent
commit
f3e0a0f4e5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      toolset/benchmark/benchmarker.py

+ 2 - 2
toolset/benchmark/benchmarker.py

@@ -682,8 +682,8 @@ class Benchmarker:
 
   def __forciblyEndPortBoundProcesses(self, test_port, out, err):
     p = subprocess.Popen(['sudo', 'netstat', '-lnp'], stdout=subprocess.PIPE)
-    out, err = p.communicate()
-    for line in out.splitlines():
+    (ns_out, ns_err) = p.communicate()
+    for line in ns_out.splitlines():
       if 'tcp' in line:
         splitline = line.split()
         port = splitline[3].split(':')