diff options
author | 2021-07-21 22:36:32 +0000 | |
---|---|---|
committer | 2021-07-21 22:37:45 +0000 | |
commit | 441bb0ef3f0afcdcf6ea517d18b98c527c9c501c (patch) | |
tree | f9dedd168a3a9fd3e2d6b0cc0f3a7a639f156161 /libs/binder/RpcSession.cpp | |
parent | b08c2cb666abb46551d84ed01341c0d96c245a00 (diff) |
libbinder: RPC sockets - remove unnecessary SIGHUP
This is ignored in poll events.
Bug: jiyong commented on a recent CL
Test: binderRpcTest
Change-Id: I23e961b021beb643a46d9504582e92d3e8e096a4
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r-- | libs/binder/RpcSession.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp index c01a03d4c6..5fe0b0025f 100644 --- a/libs/binder/RpcSession.cpp +++ b/libs/binder/RpcSession.cpp @@ -181,9 +181,7 @@ bool RpcSession::FdTrigger::isTriggered() { status_t RpcSession::FdTrigger::triggerablePoll(base::borrowed_fd fd, int16_t event) { while (true) { - pollfd pfd[]{{.fd = fd.get(), - .events = static_cast<int16_t>(event | POLLHUP), - .revents = 0}, + pollfd pfd[]{{.fd = fd.get(), .events = static_cast<int16_t>(event), .revents = 0}, {.fd = mRead.get(), .events = POLLHUP, .revents = 0}}; int ret = TEMP_FAILURE_RETRY(poll(pfd, arraysize(pfd), -1)); if (ret < 0) { |