adb: fix windows build after "forward --list" fix.

EWOULDBLOCK is not there on windows.
It gets translated by the adb_write() wrapper into EGAIN.
But the Linux one does not translate EWOULDBLOCK into EGAIN.
Without EWOULDBLOCK, it works just fine.

Change-Id: Ic293be392aa4364637428ea94ef87890ffa09b9b
Signed-off-by: JP Abgrall <jpa@google.com>
This commit is contained in:
JP Abgrall 2014-03-06 19:40:45 -08:00
parent 66e95d76c4
commit 5b0bb4898c
1 changed files with 1 additions and 1 deletions

View File

@ -1188,7 +1188,7 @@ int writex(int fd, const void *ptr, size_t len)
D("writex: fd=%d error %d: %s\n", fd, errno, strerror(errno));
if (errno == EINTR)
continue;
if (errno == EAGAIN || errno == EWOULDBLOCK) {
if (errno == EAGAIN) {
adb_sleep_ms(1); // just yield some cpu time
continue;
}