summaryrefslogtreecommitdiff
path: root/server/InterfaceController.cpp
diff options
context:
space:
mode:
authorBen Schwartz <bemasc@google.com>2019-01-22 17:32:17 -0500
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-05-15 05:34:56 +0000
commitd3cb7fec6f6affa9067f26084e33ad4980520ecf (patch)
tree312c446e4ce760592f59de6c4c370c3fc67ddd64 /server/InterfaceController.cpp
parent3c50825246c5281f09b232749ea667e405b9d825 (diff)
Fix DnsTlsSocket fast shutdown path
Previously, DnsTlsSocket's destructor told the loop thread to perform a clean shutdown by closing an IPC file descriptor. However, the IPC file descriptor is now an eventfd, which does not alert the listening thread when it is closed. This change uses the eventfd counter's sign bit as an indication that the destructor is requesting an immediate close. Test: Includes regression test. Bug: 123212403 Bug: 124058672 Bug: 122856181 Change-Id: I6edc26bf504cbfbba7d055b1f8e52ac70e02c6e0 Merged-In: I6edc26bf504cbfbba7d055b1f8e52ac70e02c6e0 (cherry picked from commit 83eccadc7e9d0ee0f75aab980cfdc2159c4c98a2)
Diffstat (limited to 'server/InterfaceController.cpp')
0 files changed, 0 insertions, 0 deletions