summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-05-22 17:37:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-22 17:37:23 +0000
commit59976b9bed819686d63b67c33768e938b2a76d24 (patch)
tree200e90e695cd1e1129bc84e79f5b1dac290a40b5 /init
parentc5fbf494e7400c53e724ff140512dc0040621d1d (diff)
parent4053359c7fe4fe94f01f40f7d0eade0ab4912704 (diff)
downloadsystem_core-59976b9bed819686d63b67c33768e938b2a76d24.tar.gz
system_core-59976b9bed819686d63b67c33768e938b2a76d24.tar.bz2
system_core-59976b9bed819686d63b67c33768e938b2a76d24.zip
Merge "Property: Log errno for socket connect"
Diffstat (limited to 'init')
-rw-r--r--init/property_service.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/init/property_service.cpp b/init/property_service.cpp
index 32cf0eefd..741fde0b9 100644
--- a/init/property_service.cpp
+++ b/init/property_service.cpp
@@ -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;
}