Merge "Fix incorrect use of TEMP_FAILURE_RETRY"

This commit is contained in:
Yi Kong 2022-05-31 05:06:27 +00:00 committed by Gerrit Code Review
commit 127616da9c
2 changed files with 2 additions and 2 deletions

View file

@ -505,7 +505,7 @@ bool SnapuserdServer::WaitForSocket() {
// We don't care if the ACK is received.
code[0] = 'a';
if (TEMP_FAILURE_RETRY(send(fd, code, sizeof(code), MSG_NOSIGNAL) < 0)) {
if (TEMP_FAILURE_RETRY(send(fd, code, sizeof(code), MSG_NOSIGNAL)) < 0) {
PLOG(ERROR) << "Failed to send ACK to proxy";
return false;
}

View file

@ -637,7 +637,7 @@ bool UserSnapshotServer::WaitForSocket() {
// We don't care if the ACK is received.
code[0] = 'a';
if (TEMP_FAILURE_RETRY(send(fd, code, sizeof(code), MSG_NOSIGNAL) < 0)) {
if (TEMP_FAILURE_RETRY(send(fd, code, sizeof(code), MSG_NOSIGNAL)) < 0) {
PLOG(ERROR) << "Failed to send ACK to proxy";
return false;
}