We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71c5dbc + ff8a84e commit ee5094bCopy full SHA for ee5094b
systemvm/debian/opt/cloud/bin/cs/CsApp.py
@@ -17,7 +17,6 @@
17
# under the License.
18
import os
19
from CsFile import CsFile
20
-from CsProcess import CsProcess
21
import CsHelper
22
23
systemvm/debian/opt/cloud/bin/cs/CsProcess.py
@@ -40,9 +40,9 @@ def kill_all(self):
40
41
def find_pid(self):
42
self.pid = []
43
+ items = len(self.search)
44
for i in CsHelper.execute("ps aux"):
- items = len(self.search)
45
- proc = re.split(r"\s+", i)[items*-1:]
+ proc = re.split(r"\s+", i)[10:]
46
matches = len([m for m in proc if m in self.search])
47
if matches == items:
48
self.pid.append(re.split(r"\s+", i)[1])
0 commit comments