summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2022-12-17 21:41:04 +0000
committer David Brazdil <dbrazdil@google.com> 2022-12-20 08:18:04 +0000
commit8a74190b1dc6acfb1fd371b94a450c6c0bef0700 (patch)
tree1a6e7f41dd996d6b41539258dd84d2fae4e25440 /libs/jpegrecoverymap/jpegencoderhelper.cpp
parent8a1a5f8d8a8d3c7cb4ac5aed4e5b7a2ac14f2bd2 (diff)
rpc_binder: Properly shut down on socketpair() EOF
FdTrigger::triggerablePoll returns OK on POLLIN (higher priority) and DEAD_OBJECT on POLLHUP (lower priority). Unlike INET or vsock, socketpair() sockets trigger POLLIN|POLLHUP on EOF and EOF is detected by recvmsg() returning zero bytes. Adjust the server accept loop to take this into account and correctly break out of the loop. Bug: 250685929 Test: cleanly shut down UDS bootstrap RpcServer Change-Id: I56d6a67373f16b5b1bdc167de94a7252bedca8e2
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions