summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorSpencer Low <CompareAndSwap@gmail.com>2015-08-26 18:46:09 -0700
committerSpencer Low <CompareAndSwap@gmail.com>2015-08-26 18:46:09 -0700
commit2122c7a1483dc6050b33f58fad4a15d5acd79fdd (patch)
treed4a53d66465f1d558083e12155b1f5210083277b /base/errors_unix.cpp
parent804180b2ccf2ef4dedad7d136c060ecbdda7aac5 (diff)
win32: adb start-server shows stdout/stderr output from actual server
When launching the adb server (typically from adb start-server), redirect stdout/stderr to anonymous pipes which are read by threads in the parent process, to make error diagnosis easier. If there is an error during adb start-server, the output looks like: > adb start-server * daemon not running. starting it now on port 5037 * error: could not blah # from server process could not read ok from ADB Server # from launch_server * failed to start daemon * # from adb_connect error: cannot connect to daemon # from adb_commandline Fix handle-leaks in launch_server by using new unique_handle class that is based on std::unique_ptr. In the server, close stdin and redirect to adb.log *before* sending the ACK, so that any errors are reported early instead of after the ACK. Change-Id: I943881210a0ea9458fc36851339f916c3d6a0830 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions