summaryrefslogtreecommitdiffstats
path: root/libril
diff options
context:
space:
mode:
authorBanavathu, Srinivas Naik <snb@codeaurora.org>2011-07-05 20:04:25 +0530
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-01-23 17:12:53 +0000
commit388849057a8cc91dbc3fff357d2df524ffec9a4d (patch)
treed9ab4fc5c8f95722fbe042b732766cfd3018d90c /libril
parent171a192f19a5753e03ef91578430e7a5ee680b7f (diff)
downloadandroid_hardware_ril-388849057a8cc91dbc3fff357d2df524ffec9a4d.tar.gz
android_hardware_ril-388849057a8cc91dbc3fff357d2df524ffec9a4d.tar.bz2
android_hardware_ril-388849057a8cc91dbc3fff357d2df524ffec9a4d.zip
Rild: Ril should try to write again to the socket EAGAIN error
In case of EAGAIN error, the RIL should write to socket again after some time. Change-Id: Ia4c8d17b7c16040a49a4c607a1d1350ebbe7847c CRs-Fixed: 285312
Diffstat (limited to 'libril')
-rw-r--r--libril/ril.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp
index 1548e62..0f37cc1 100644
--- a/libril/ril.cpp
+++ b/libril/ril.cpp
@@ -1315,7 +1315,7 @@ blockingWrite(int fd, const void *buffer, size_t len) {
do {
written = write (fd, toWrite + writeOffset,
len - writeOffset);
- } while (written < 0 && errno == EINTR);
+ } while (written < 0 && ((errno == EINTR) || (errno == EAGAIN)));
if (written >= 0) {
writeOffset += written;