mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1233454 - Guard against ps timeout in devicemanagerADB.getProcessList; r=jmaher
This commit is contained in:
parent
cb4e562b6c
commit
dad6c5ccfc
@ -323,10 +323,12 @@ class DeviceManagerADB(DeviceManager):
|
||||
return data
|
||||
|
||||
def getProcessList(self):
|
||||
ret = []
|
||||
p = self._runCmd(["shell", "ps"], timeout=self.short_timeout)
|
||||
if not p or not p.output or len(p.output) < 1:
|
||||
return ret
|
||||
# first line is the headers
|
||||
p.output.pop(0)
|
||||
ret = []
|
||||
for proc in p.output:
|
||||
els = proc.split()
|
||||
# We need to figure out if this is "user pid name" or
|
||||
|
Loading…
Reference in New Issue
Block a user