Merge "Property: Log errno for socket connect"
am: 59976b9bed
Change-Id: I8d20c4017031a4bba3629e522bcac01b96e6e179
diff --git a/init/property_service.cpp b/init/property_service.cpp
index 32cf0ee..741fde0 100644
--- a/init/property_service.cpp
+++ b/init/property_service.cpp
@@ -372,6 +372,7 @@
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 @@
data += result;
}
+ if (bytes_left != 0) {
+ LOG(ERROR) << "sys_prop: recv data is not properly obtained.";
+ }
+
return bytes_left == 0;
}