Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0df06907 authored by Dan Albert's avatar Dan Albert Committed by Gerrit Code Review
Browse files

Merge "adb: win32: fix daemon acknowledgement"

parents d0008c97 d396dc93
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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