am 68773ab8: am 2ad928a8: Merge "Rild: Ril should try to write again to the socket EAGAIN error"

* commit '68773ab87d858f41ae59e796669bd78891e140db':
  Rild: Ril should try to write again to the socket EAGAIN error
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;