Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1652)

Unified Diff: build/android/provision_devices.py

Issue 490563002: [Android] Fix KillHostHeartbeat for numerical user IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/provision_devices.py
diff --git a/build/android/provision_devices.py b/build/android/provision_devices.py
index b0c44d4f9d2ca6a7cb2418bee1005414cc9a1550..43c33eba58a391583e87de4986b7190d32290784 100755
--- a/build/android/provision_devices.py
+++ b/build/android/provision_devices.py
@@ -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)])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698