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:
benjamin%smedbergs.us 2009-03-02 14:46:28 +00:00
parent 2723e5852a
commit 7f8fff4129
2 changed files with 4 additions and 0 deletions

View File

@ -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])

View File

@ -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])