am 0df06907: Merge "adb: win32: fix daemon acknowledgement"

* commit '0df06907b42d5deea3d55411d98e273e204390ab':
  adb: win32: fix daemon acknowledgement
This commit is contained in:
Dan Albert 2015-05-15 21:56:44 +00:00 committed by Android Git Automerger
commit e9e6eb82b6

View file

@ -156,6 +156,10 @@ int adb_main(int is_daemon, int server_port) {
// TODO(danalbert): Why do we use stdout for Windows?
#if defined(_WIN32)
int reply_fd = STDOUT_FILENO;
// Change stdout mode to binary so \n => \r\n translation does not
// occur. In a moment stdout will be reopened to the daemon log file
// anyway.
_setmode(reply_fd, _O_BINARY);
#else
int reply_fd = STDERR_FILENO;
#endif