[Android] Fix KillHostHeartbeat for numerical user IDs.

BUG=405033

Review URL: https://codereview.chromium.org/490563002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@290615 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
jbudorick@chromium.org 2014-08-19 18:17:26 +00:00
Родитель 5c64851d8f
Коммит 499b3c3b36
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -36,7 +36,7 @@ def KillHostHeartbeat():
matches = re.findall('\\n.*host_heartbeat.*', stdout)
for match in matches:
logging.info('An instance of host heart beart running... will kill')
pid = re.findall('(\d+)', match)[0]
pid = re.findall('(\S+)', match)[1]
subprocess.call(['kill', str(pid)])