summaryrefslogtreecommitdiff
path: root/fastboot/fastboot_driver.cpp
diff options
context:
space:
mode:
authorSpencer Low <CompareAndSwap@gmail.com>2018-09-02 19:19:39 -0700
committerSpencer Low <CompareAndSwap@gmail.com>2018-09-02 19:26:25 -0700
commit40babf07099c226fa423b58f79e63030230ee983 (patch)
tree543e0a577c7e6b23e23f343a6bc55f218d88bdcf /fastboot/fastboot_driver.cpp
parent640ceee567c7f7e3832f9de189580fd3e138e951 (diff)
adb: win32: fix ReportServerStartupFailure
The code was passing an fd from adb_open() to android::base::ReadFdToString() which actually takes a C-Runtime fd (on Windows), so it wasn't working. The fix is to use APIs that deal with C-Runtime fds: * unix_open() * android::base::unique_fd * unix_lseek() (added in this change) I also removed an unnecessary call to GetProcessId() since we already have the process id from the structure returned by CreateProcess(). Test: adb start-server on Win10 and Ubuntu (with a failing server) Test: mma Change-Id: Id6e2dd5532a02fe5d9caf96aa007a1b3434a0b59 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'fastboot/fastboot_driver.cpp')
0 files changed, 0 insertions, 0 deletions