diff options
author | Spencer Low <CompareAndSwap@gmail.com> | 2015-05-20 23:17:26 -0700 |
---|---|---|
committer | Spencer Low <compareandswap@gmail.com> | 2015-06-02 21:04:56 +0000 |
commit | d0f66c361641dc30162877ee3e4b4690d6833442 (patch) | |
tree | 7e70c74ca334065f521553314aa03c05bd01303a /libutils/Unicode.cpp | |
parent | 1333694c859d7e09f6a80546cb2cdc225430c897 (diff) |
adb: win32: fix logging to adb.log
In the adb client, redirect stdin and stderr of the adb server to `nul',
so that when the adb server starts up, it avoids issues in the C Runtime
where it closes stderr, making it hard to properly reopen. There are
probably other ways to avoid this issue, but I think this is the
cleanest that will keep working over the years and will exercise the
most commonly used code-paths in the C Runtime.
Fix some adb_close() calls to be unix_close() (only really matters on
Windows).
Make stderr non-buffered on Windows, to match the (sensible) Linux
behavior.
Change-Id: I1b15c64240e50dbeb56788b0d0d901f4536ad788
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions