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
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 @@
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;