summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-09-14 10:24:26 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-14 10:24:26 -0700
commitc3fa6149284058b30e3eea5010c16d3133711afb (patch)
tree07c0b53d14a150a6cf88811bfbf7138c1bae0994
parent5833769d9aa41dfb28a74c665fda0fca9c321fc1 (diff)
parentf31d2ed1fd3a39a92bccc12eb66728594290ef3b (diff)
downloadsystem_core-c3fa6149284058b30e3eea5010c16d3133711afb.zip
system_core-c3fa6149284058b30e3eea5010c16d3133711afb.tar.gz
system_core-c3fa6149284058b30e3eea5010c16d3133711afb.tar.bz2
am f31d2ed1: Return false on socket read error
Merge commit 'f31d2ed1fd3a39a92bccc12eb66728594290ef3b' into gingerbread-plus-aosp * commit 'f31d2ed1fd3a39a92bccc12eb66728594290ef3b': Return false on socket read error
-rw-r--r--libsysutils/src/FrameworkListener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsysutils/src/FrameworkListener.cpp b/libsysutils/src/FrameworkListener.cpp
index 80f678d..640b6df 100644
--- a/libsysutils/src/FrameworkListener.cpp
+++ b/libsysutils/src/FrameworkListener.cpp
@@ -35,7 +35,7 @@ bool FrameworkListener::onDataAvailable(SocketClient *c) {
if ((len = read(c->getSocket(), buffer, sizeof(buffer) -1)) < 0) {
SLOGE("read() failed (%s)", strerror(errno));
- return errno;
+ return false;
} else if (!len)
return false;