summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-03-19 17:54:39 -0700
committerJerry Zhang <zhangjerry@google.com>2018-03-23 00:11:05 +0000
commit6e9a327504e6aa2488b736fd5592525278a0916f (patch)
treeee25ad86f69268ca0fb52057405c838c0cee4e19 /base/errors_unix.cpp
parent1f70d1cac570550daa67796241f3885dd09f7e2e (diff)
adb: Retry io in case of interrupt
io_submit sleeps waiting for the gadget to be enabled. Currently if that sleep is interrupted it will shut down adb, causing it to have to start back up again. Rather than return EINTR if interrupted, io_submit actually completes and the EINTR is found later when looking through events. Since an io that is interrupted will be small anyway, add a loop to retry small ios. Also upgrade aio logs in accordance with their importance. Fixes: 75981904 Test: adb works, logs show successful interrupt handling Change-Id: I35973fce130ee849ce59fef80d15b65afb816ba4
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions