* commit '0e2177d53035f1c67c44cff0d963715dbd1465b5': libsysutils: Handle EINTR in NetlinkListener
This commit is contained in:
commit
468c41642b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue