Still need to loop again when EAGAIN after a read triggered by an event

This commit is contained in:
Arkaitz Jimenez
2013-10-10 00:12:28 +02:00
parent e2454aa898
commit bdedc1c94c
+2
View File
@@ -389,6 +389,8 @@ wait:
remains -= len;
*rlen += len;
continue;
}else if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINPROGRESS) {
goto wait;
}
*rlen = -1;
if (len == 0) {