commit | fa3107e2477de7b7554816ac5e2edeeef058e1b6 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed Jul 25 17:21:49 2018 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed Jul 25 18:49:37 2018 -0700 |
tree | d07cb6886f12b3ef7696b79a157e5df2dabea2be | |
parent | d8d51f4fc05fe76d463812be51916ad786570f02 [diff] |
adb: fix register_socket_transport related double-closes. Multiple codepaths were closing the fd they passed into register_socket_transport on failure, which would close the fd itself. Switch things over to unique_fd to make it clear that we don't actually have to close on failure. Test: mma Change-Id: I2d9bdcb1142c24931d970f99ebdf9a8051daf05c