Thread (8 messages) 8 messages, 4 authors, 2014-01-27

[PATCH 2/3] android/avdtp: Retry send on EAGAIN as well

flat view
STALE4644d

From: Andrei Emeltchenko <hidden>
Date: 2014-01-24 14:56:42
Subsystem: the rest · Maintainer: Linus Torvalds

From: Andrei Emeltchenko <redacted>

---
 android/avdtp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/android/avdtp.c b/android/avdtp.c
index 5da1206..1055bc1 100644
--- a/android/avdtp.c
+++ b/android/avdtp.c
@@ -444,7 +444,7 @@ static gboolean try_send(int sk, void *data, size_t len)
 
 	do {
 		err = send(sk, data, len, 0);
-	} while (err < 0 && errno == EINTR);
+	} while (err < 0 && (errno == EINTR || errno == EAGAIN));
 
 	if (err < 0) {
 		error("send: %s (%d)", strerror(errno), errno);
-- 
1.8.3.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help