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

* commit '0e2177d53035f1c67c44cff0d963715dbd1465b5':
  libsysutils: Handle EINTR in NetlinkListener
This commit is contained in:
David 'Digit' Turner 2011-01-18 21:59:11 -08:00 committed by Android Git Automerger
commit 468c41642b

View file

@ -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;
}