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

Commit f605b2a1 authored by David 'Digit' Turner's avatar David 'Digit' Turner Committed by Android (Google) Code Review
Browse files

Merge "libsysutils: Handle EINTR in NetlinkListener" into honeycomb

parents 68649564 b59539d3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -34,7 +34,8 @@ bool NetlinkListener::onDataAvailable(SocketClient *cli)
    int socket = cli->getSocket();
    int count;

    if ((count = recv(socket, mBuffer, sizeof(mBuffer), 0)) < 0) {
    count = TEMP_FAILURE_RETRY(recv(socket, mBuffer, sizeof(mBuffer), 0));
    if (count < 0) {
        SLOGE("recv failed (%s)", strerror(errno));
        return false;
    }