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