Skip to content

Commit ee5094b

Browse files
committed
Merge branch '4.14'
2 parents 71c5dbc + ff8a84e commit ee5094b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

systemvm/debian/opt/cloud/bin/cs/CsApp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# under the License.
1818
import os
1919
from CsFile import CsFile
20-
from CsProcess import CsProcess
2120
import CsHelper
2221

2322

systemvm/debian/opt/cloud/bin/cs/CsProcess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def kill_all(self):
4040

4141
def find_pid(self):
4242
self.pid = []
43+
items = len(self.search)
4344
for i in CsHelper.execute("ps aux"):
44-
items = len(self.search)
45-
proc = re.split(r"\s+", i)[items*-1:]
45+
proc = re.split(r"\s+", i)[10:]
4646
matches = len([m for m in proc if m in self.search])
4747
if matches == items:
4848
self.pid.append(re.split(r"\s+", i)[1])

0 commit comments

Comments
 (0)