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

Commit 468c4164 authored by David 'Digit' Turner's avatar David 'Digit' Turner Committed by Android Git Automerger
Browse files

am 0e2177d5: am f605b2a1: Merge "libsysutils: Handle EINTR in NetlinkListener" into honeycomb

* commit '0e2177d5':
  libsysutils: Handle EINTR in NetlinkListener
parents b1e921d8 0e2177d5
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;
    }