diff options
| author | JP Abgrall <jpa@google.com> | 2014-03-07 03:08:07 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-07 03:08:07 +0000 |
| commit | 9d6abbdaccd520055fc47b6b3b36232cf23897fd (patch) | |
| tree | 218424c2b90266c337e42a1ef86f378fbb196c90 /adb/transport.c | |
| parent | d01c257f0f19a30178a6d5ec9d6d00d6b702fed3 (diff) | |
| parent | 9f573bb362c3716c54df77d85a0285897daa242a (diff) | |
| download | system_core-9d6abbdaccd520055fc47b6b3b36232cf23897fd.zip system_core-9d6abbdaccd520055fc47b6b3b36232cf23897fd.tar.gz system_core-9d6abbdaccd520055fc47b6b3b36232cf23897fd.tar.bz2 | |
am 9f573bb3: am 66e95d76: Merge "Fix adb forward --list when forwarding a lot"
* commit '9f573bb362c3716c54df77d85a0285897daa242a':
Fix adb forward --list when forwarding a lot
Diffstat (limited to 'adb/transport.c')
| -rw-r--r-- | adb/transport.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/adb/transport.c b/adb/transport.c index 6002530..58f685c 100644 --- a/adb/transport.c +++ b/adb/transport.c @@ -1188,6 +1188,10 @@ 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) { + adb_sleep_ms(1); // just yield some cpu time + continue; + } } else { D("writex: fd=%d disconnected\n", fd); } |
