summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2014-03-06 19:40:45 -0800
committerJP Abgrall <jpa@google.com>2014-03-06 19:40:45 -0800
commit5b0bb4898c61e5b5b7dc95c185b2e46b65f60d00 (patch)
treeef1955c3d8650a9cb8944d160b3ba3aa37d284ac /adb
parent66e95d76c47a3a099931bbebe7f4a0af4d3f7fbb (diff)
downloadsystem_core-5b0bb4898c61e5b5b7dc95c185b2e46b65f60d00.zip
system_core-5b0bb4898c61e5b5b7dc95c185b2e46b65f60d00.tar.gz
system_core-5b0bb4898c61e5b5b7dc95c185b2e46b65f60d00.tar.bz2
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>
Diffstat (limited to 'adb')
-rw-r--r--adb/transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/transport.c b/adb/transport.c
index 58f685c..f35880c 100644
--- a/adb/transport.c
+++ b/adb/transport.c
@@ -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;
}