Merge "libsysutils: Handle EINTR in NetlinkListener" into honeycomb

This commit is contained in:
David 'Digit' Turner 2011-01-18 17:31:20 -08:00 committed by Android (Google) Code Review
commit f605b2a190

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