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

Commit 0e2177d5 authored by David 'Digit' Turner's avatar David 'Digit' Turner Committed by Android Git Automerger
Browse files

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

* commit 'f605b2a1':
  libsysutils: Handle EINTR in NetlinkListener
parents 5e4d60fb f605b2a1
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;
    }