commit | 4af92ac7c3ffd54d57ca5a231c940d777bfd6c73 | [log] [tgz] |
---|---|---|
author | Andrei Homescu <ahomescu@google.com> | Tue Jan 24 21:24:47 2023 +0000 |
committer | Andrei Homescu <ahomescu@google.com> | Tue Jan 24 23:03:48 2023 +0000 |
tree | 158f273e7fa7d64d669aefec01a917586b8c5743 | |
parent | ee436e4f099c36af2b9b274c87e82d7e24ea2da8 [diff] |
libbinder: Duplicate channel handle in RpcServerTrusty The tipc library calls close() on the channel handle when the connection is shut down. RpcServerTrusty wraps the channel handle in a unique_fd for its own use. This second copy of the handle needs to be a duplicate from dup() to prevent a double call to close() on the same handle. Bug: 259517277 Test: trusty_stats_test Change-Id: Ibbab75873ccf43e6d8315202794534e9f89a65c3