android_system_core/adb/client
Spencer Low c8ad0ca69d adb: really make kill-server wait for server death
It doesn't seem like b3c14ec693 was really
waiting for adb server death because the server would write OKAY to the
socket, causing the client to return from ReadOrderlyShutdown() before
the socket was actually closed.

The fix is to read the OKAY and then call ReadOrderlyShutdown() which
will then wait for the socket to be closed.

Test: Made the server hang in adb_server_cleanup() during kill-server
and kill-server would hang (as desired).
Test: To test resilience, tried preventing the server from sending OKAY and
adb kill-server still worked properly.

Change-Id: I4f0f11b86bbdc983670273ef5d3bb1dff7ab3697
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2018-08-29 15:46:47 -07:00
..
adb_client.cpp adb: really make kill-server wait for server death 2018-08-29 15:46:47 -07:00
adb_client.h Integrate adb with fastdeploy 2018-08-06 13:57:47 +01:00
adb_install.cpp Fix MacOS SDK build error caused by deprecated stl call. 2018-08-21 19:25:01 +01:00
adb_install.h Integrate adb with fastdeploy 2018-08-06 13:57:47 +01:00
auth.cpp adb: report connection status when we're unauthorized. 2018-08-08 17:40:15 -07:00
bugreport.cpp adb: win32: fix Unicode console output 2018-07-30 19:53:23 -07:00
bugreport.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
commandline.cpp Merge "Integrate adb with fastdeploy" 2018-08-21 06:28:49 +00:00
commandline.h Integrate adb with fastdeploy 2018-08-06 13:57:47 +01:00
console.cpp adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
fastdeploy.cpp Integrate adb with fastdeploy 2018-08-06 13:57:47 +01:00
fastdeploy.h Integrate adb with fastdeploy 2018-08-06 13:57:47 +01:00
fastdeploycallbacks.cpp Integrate adb with fastdeploy 2018-08-06 13:57:47 +01:00
fastdeploycallbacks.h Integrate adb with fastdeploy 2018-08-06 13:57:47 +01:00
file_sync_client.cpp adb: split file_sync_service.h into client and daemon parts. 2018-07-25 18:08:32 -07:00
file_sync_client.h adb: split file_sync_service.h into client and daemon parts. 2018-07-25 18:08:32 -07:00
line_printer.cpp [adb] Modernize codebase by replacing NULL with nullptr 2018-07-13 18:21:00 -07:00
line_printer.h adb: switch over to Android.bp. 2018-02-28 15:29:50 -08:00
main.cpp adb: add environment variables to disable usb, emulators, mdns. 2018-08-10 14:27:51 -07:00
transport_mdns.cpp adb: remove fdevent_install, fdevent_remove. 2018-05-22 14:54:49 -07:00
usb_dispatch.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_libusb.cpp adb: Have device usb_handle return io size 2018-07-17 11:53:30 -07:00
usb_linux.cpp Merge changes I31e444f3,If07ff05f,If3ba190d 2018-07-17 22:35:36 +00:00
usb_osx.cpp adb: Have device usb_handle return io size 2018-07-17 11:53:30 -07:00
usb_windows.cpp Merge changes I31e444f3,If07ff05f,If3ba190d 2018-07-17 22:35:36 +00:00