Merge "Property: Log errno for socket connect" am: 59976b9bed
am: bf5200ef61
Change-Id: I5abee669341d64da52c60eb63b1e14b58e3ca23e
This commit is contained in:
commit
08ccca6270
1 changed files with 5 additions and 0 deletions
|
|
@ -372,6 +372,7 @@ class SocketConnection {
|
|||
|
||||
int result = TEMP_FAILURE_RETRY(recv(socket_, data, bytes_left, MSG_DONTWAIT));
|
||||
if (result <= 0) {
|
||||
PLOG(ERROR) << "sys_prop: recv error";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -379,6 +380,10 @@ class SocketConnection {
|
|||
data += result;
|
||||
}
|
||||
|
||||
if (bytes_left != 0) {
|
||||
LOG(ERROR) << "sys_prop: recv data is not properly obtained.";
|
||||
}
|
||||
|
||||
return bytes_left == 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue