Index: build/android/pylib/forwarder.py |
diff --git a/build/android/pylib/forwarder.py b/build/android/pylib/forwarder.py |
index 5e45043089480b3270e946d398418673c13fad8e..5f40a941a63cc741b0c912b0670228d62d00e2ec 100644 |
--- a/build/android/pylib/forwarder.py |
+++ b/build/android/pylib/forwarder.py |
@@ -270,6 +270,7 @@ class Forwarder(object): |
pid_file.seek(0) |
pid_file.write( |
'%s:%s' % (pid_for_lock, str(_GetProcessStartTime(pid_for_lock)))) |
+ pid_file.truncate() |
def _InitDeviceLocked(self, device, tool): |
"""Initializes the device_forwarder daemon for a specific device (once). |