Bug 480558 - Talos should be more lenient about defunct processes, r=alice
git-svn-id: svn://10.0.0.236/trunk@256391 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2723e5852a
commit
7f8fff4129
@ -86,6 +86,8 @@ def GetPidsByName(process_name):
|
||||
|
||||
# find all matching processes and add them to the list
|
||||
for line in data.splitlines():
|
||||
if line.find('defunct') != -1:
|
||||
continue
|
||||
if line.find(process_name) >= 0:
|
||||
# splits by whitespace, the first one should be the pid
|
||||
pid = int(line.split()[0])
|
||||
|
||||
@ -92,6 +92,8 @@ def GetPidsByName(process_name):
|
||||
#overlook the mac crashreporter daemon
|
||||
if line.find("crashreporterd") >= 0:
|
||||
continue
|
||||
if line.find('defunct') != -1:
|
||||
continue
|
||||
if line.find(process_name) >= 0:
|
||||
# splits by whitespace, the first one should be the pid
|
||||
pid = int(line.split()[0])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user