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

Commit b59539d3 authored by David 'Digit' Turner's avatar David 'Digit' Turner
Browse files

libsysutils: Handle EINTR in NetlinkListener

Change-Id: Id881a9ca0f0e54f7c78b3609120bedec00d6671c
parent 3311eea1
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;
    }