commit | 8743ef98414b336f222327253f2cde6bf6aee386 | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Thu Mar 19 22:53:30 2015 -0700 |
committer | Dan Albert <danalbert@google.com> | Fri Mar 20 09:49:15 2015 -0700 |
tree | dad722507f4a48fff58f66969ccdfc3a8644a9b6 | |
parent | 4b8b38f4e5f216f317d9837de49468b32be86984 [diff] |
Additional cleanup of start_device_log. Addresses nnk's post commit review comments on https://android-review.googlesource.com/#/c/139381/ Remove unneeded code for creating /data/adb. Add an O_CLOEXEC. Move the closing of stdin out to main(). Append the pid of the current process to the log file to avoid clobbering the log if the process crashes and restarts within the same second. Change-Id: Ide0be86b4b33256486634c29ba02efaf10cf913d