Go to file
Josh Gao 1222abc75b adb: make fdevent_run_on_main_thread's fd nonblocking.
If we get a ton of fdevent_run_on_main_thread calls while running one
of the handlers, the socket might become full, which will result in a
deadlock in fdevent_run_on_main_thread when a write to the fd blocks
with the mutex taken. Resolve this by making the fd nonblocking, which
is safe because we always write after appending to the list, and read
before emptying the list, which guarantees that if the byte we write is
consumed, the std::function we appended will be run.

Bug: http://b/74616284
Test: adb_test
Test: python test_device.py
Change-Id: I29319bda2ad7b5a5cdcd91d1d0ddf39f7ab7d115
2018-03-20 13:23:06 -07:00
adb adb: make fdevent_run_on_main_thread's fd nonblocking. 2018-03-20 13:23:06 -07:00
adf Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
base base: export GetThreadId. 2018-03-16 15:35:52 -07:00
bootstat bootstat: add support for suppressing needle match on output 2018-03-16 15:47:27 -07:00
cpio
debuggerd Mark crash_dump.policy as not supported on mips 2018-02-27 15:35:11 -08:00
demangle bpfmt. 2018-02-16 17:58:14 -08:00
diagnose_usb Copy adb/OWNERS to diagnose_usb/OWNERS. 2018-03-05 15:47:43 -08:00
fastboot fastboot: only require Linux modules on Linux 2018-02-13 17:49:16 +00:00
fs_mgr fs_mgr: Ignore invalid DT device nodes 2018-03-07 17:59:57 +01:00
gatekeeperd
healthd Remove obsolete BRILLO variable 2018-03-10 15:41:37 -08:00
include
init Revert "init: Reboot after timeout passes during reboot" 2018-03-19 16:37:02 -07:00
libappfuse bpfmt. 2018-02-16 17:58:14 -08:00
libasyncio Merge "Make libasyncio headers usable from C" 2018-03-06 19:35:21 +00:00
libbacktrace Modify the offline handling interface. 2018-02-23 09:14:06 -08:00
libbinderwrapper
libcrypto_utils
libcutils Remove fs_config entries for webview_zygote. 2018-02-14 17:42:03 -05:00
libdiskconfig Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]] 2017-10-02 10:44:29 -07:00
libgrallocusage Use -Werror in system/core 2017-11-01 11:32:55 -07:00
libion libion: cleanup logging 2018-03-07 10:56:06 -08:00
libkeyutils
liblog liblog: save errno through log writing 2018-03-07 10:56:51 -08:00
libmemtrack Add OWNERS. 2017-12-07 13:30:03 -08:00
libmemunreachable Remove test_suites: ["vts"] from memunreachable_binder_test 2018-03-15 14:57:22 -07:00
libmetricslogger Add OWNERS. 2017-12-07 13:30:03 -08:00
libnativebridge bpfmt. 2018-02-16 17:58:14 -08:00
libnativeloader bpfmt. 2018-02-16 17:58:14 -08:00
libnetutils Add OWNERS. 2017-12-07 13:30:03 -08:00
libpackagelistparser bpfmt. 2018-02-16 17:58:14 -08:00
libpixelflinger MIPS[64]: codeflinger: Fix build due to unused variable warnings 2017-11-06 16:38:49 +01:00
libprocessgroup libprocessgroup: remove legacy C string handling and build for host 2018-02-27 14:12:19 -08:00
libprocinfo bpfmt. 2018-02-16 17:58:14 -08:00
libqtaguid Redirect qtaguid native call to netd fwmark client 2017-11-09 18:02:22 -08:00
libsparse Merge "<stdbool.h> not necessary in C++." 2017-10-17 19:26:53 +00:00
libsuspend Add force_suspend function 2018-01-19 12:30:39 -08:00
libsync
libsystem bpfmt. 2018-02-16 17:58:14 -08:00
libsysutils Include iface index in the netlink event 2018-03-07 11:39:52 +09:00
libunwindstack Merge "Always set the sp reg to the cfa for DWARF." 2018-03-19 17:48:59 +00:00
libusbhost Remove urb request size maximum. 2018-02-07 16:12:14 -08:00
libutils Revert "libutilscallstack is private VNDK-SP" 2018-03-14 16:21:00 +09:00
libvndksupport bpfmt. 2018-02-16 17:58:14 -08:00
libziparchive Remove empty zip warning on host builds 2018-03-01 21:33:49 +00:00
lmkd lmkd: Fix lmkd-test to work with relative paths 2018-03-13 12:34:18 -07:00
logcat bpfmt. 2018-02-16 17:58:14 -08:00
logd logd: identical check access message data out of range 2018-03-13 12:16:39 -07:00
logwrapper bpfmt. 2018-02-16 17:58:14 -08:00
mkbootimg
property_service Introduce property types 2018-01-16 14:44:40 -08:00
qemu_pipe Add OWNERS. 2017-12-07 13:30:03 -08:00
reboot
rootdir /postinstall/* does not search for a lib in /vendor or /odm 2018-03-20 10:12:00 +09:00
run-as
sdcard Remove FUSE logic; it's only a sdcardfs wrapper. 2018-01-12 15:41:55 -07:00
shell_and_utilities Reland: Add getprop to toolbox 2018-01-10 11:26:24 -08:00
storaged Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
toolbox Build toolbox with _FILE_OFFSET_BITS=64. 2018-01-22 16:15:55 -08:00
trusty bpfmt. 2018-02-16 17:58:14 -08:00
usbd bpfmt. 2018-02-16 17:58:14 -08:00
.clang-format
.clang-format-2
.clang-format-4
.gitignore
Android.bp
Android.mk
CleanSpec.mk Add VNDK version for namespace configuration files 2017-12-13 10:31:04 +09:00
MODULE_LICENSE_APACHE2
NOTICE
OWNERS Add ek and lorenzo to OWNERS for system/core netlink code. 2018-03-05 19:18:02 +09:00
PREUPLOAD.cfg
platform_tools_tool_version.mk