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:
parent
66e95d76c4
commit
5b0bb4898c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue