summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChinh Tran <chinht@codeaurora.org>2011-03-23 10:37:18 -0700
committerChinh Tran <chinht@codeaurora.org>2011-03-23 17:26:19 -0700
commitf83c01719a3736aebf789d134ba1586d8944580c (patch)
treec1e042961e708e8ab6375dd93d5b937ea7d9d451
parent51261d1cea556cec520397faa010dd9a141b6243 (diff)
downloadandroid_external_connectivity-f83c01719a3736aebf789d134ba1586d8944580c.tar.gz
android_external_connectivity-f83c01719a3736aebf789d134ba1586d8944580c.tar.bz2
android_external_connectivity-f83c01719a3736aebf789d134ba1586d8944580c.zip
external/connectivity: Cnd socket server should not exit when a client closes
When a client closes, server should not exit, but continue to listen to other clients. CR-fixed: 277734 Change-Id: I524126a688a474ce2f414491f9e3f319add80e9e
-rwxr-xr-x[-rw-r--r--]cnd/src/cnd_process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cnd/src/cnd_process.cpp b/cnd/src/cnd_process.cpp
index 7911746..18c1a3d 100644..100755
--- a/cnd/src/cnd_process.cpp
+++ b/cnd/src/cnd_process.cpp
@@ -1053,7 +1053,7 @@ static void processCommandsCallback(int fd, void *param)
}
CNE_LOGV ("processCommandsCallback: exit loop, ret=%d, errno=%d, fd=%d",
ret, errno, fd);
- if (ret == 0 || !(errno == EAGAIN || errno == EINTR)) {
+ if (ret == 0 || !(errno == EAGAIN || errno == EINTR || errno == EBADF)) {
/* fatal error or end-of-stream */
if (ret != 0) {
CNE_LOGD("error on reading command socket errno:%d\n", errno);