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

Commit 234d8f80 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Log and return error if failed to listen to a socket"

parents cf36cea0 86e5880d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -92,7 +92,10 @@ bool SocketComm::listen() {
    }

    ALOGI("%s: Listening for connections on port %d", __FUNCTION__, DEBUG_SOCKET);
    ::listen(mListenFd, 1);
    if (::listen(mListenFd, 1) == -1) {
        ALOGE("%s: Error on listening: errno: %d: %s", __FUNCTION__, errno, strerror(errno));
        return false;
    }
    return true;
}