android_system_core/adb/daemon
Jerry Zhang 6e9a327504 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
2018-03-23 00:11:05 +00:00
..
main.cpp Merge "Revert "adbd: lessen security constraints when the device is unlocked"" am: 9638729a9d am: 08a8c4209f 2017-08-31 08:33:34 +00:00
mdns.cpp adb: kill adb_thread_{create, join, detach, exit}. 2017-04-12 17:12:32 -07:00
mdns.h Make ADBD announce its presence over mDNS 2017-03-07 14:42:06 -08:00
usb.cpp adb: Retry io in case of interrupt 2018-03-23 00:11:05 +00:00
usb.h adb: Remove usages of ENDPOINT_ALLOC 2018-03-14 22:11:59 +00:00