Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8a74190b authored by David Brazdil's avatar David Brazdil
Browse files

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
parent 8a1a5f8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment