diff options
| author | Siva Velusamy <vsiva@google.com> | 2015-08-07 10:10:29 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2015-08-07 11:31:07 -0700 |
| commit | 9f2d1a9cfc04e1d5970823da1878097288a9a9cd (patch) | |
| tree | ae194819d0ac72e4db7a37e4f169a6839422598a /trusty/coverage/coverage.cpp | |
| parent | e1101677eabaaddc2a60c6456cce1fd5e38f5b4e (diff) | |
adb start-server: Use a separate fd for sending initial OK
When "adb start-server" is issued, and a server needs to be launched,
adb client forks itself and the child process runs the server routine.
Once the server initializes its various components, it sends an "OK\n"
back to the client via its stderror (or stdout on Windows).
This sequence breaks down if before sending the "OK\n", the server
happens to log something on its stderr. In order to avoid this, the
client now expects the ack to come on a different fd rather than one
of the standard streams.
Bug: https://code.google.com/p/android/issues/detail?id=182150
Change-Id: I9d58a08068d71eb3b77e8a7377e934631c016466
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions
