summaryrefslogtreecommitdiffstats
path: root/base/logging.cpp
diff options
context:
space:
mode:
authorSpencer Low <CompareAndSwap@gmail.com>2015-11-10 19:17:16 -0800
committerSpencer Low <CompareAndSwap@gmail.com>2015-11-11 16:59:06 -0800
commit32762f4afdcb0eab4114c9c3c2206a39a8200a62 (patch)
tree5cb81db60badcbe53790f35a5d4720f834ea9d37 /base/logging.cpp
parentbf666599b32ec668f009076b594cccdd338e3cc5 (diff)
downloadsystem_core-32762f4afdcb0eab4114c9c3c2206a39a8200a62.tar.gz
system_core-32762f4afdcb0eab4114c9c3c2206a39a8200a62.tar.bz2
system_core-32762f4afdcb0eab4114c9c3c2206a39a8200a62.zip
adb: win32: fix adb shell
28416d6d33267f92768116e269966d61eac01db9 broke adb shell on Windows because it was calling unix_read() with a buffer size of 1 byte which wasn't supported by unix_read()/_console_read(). This change makes _console_read() support such a small buffer by maintaining an internal input buffer. This lets us simplify the existing code that was already maintaining a cached INPUT_RECORD. Also eliminate some duplicate code in the big switch statement. Change-Id: I8f0aed4fb9f6f2f5b9a6b68ce60d2e368fec81c7 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'base/logging.cpp')
0 files changed, 0 insertions, 0 deletions