diff options
| author | Josh Gao <jmgao@google.com> | 2018-07-25 17:21:49 -0700 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2018-07-25 18:49:37 -0700 |
| commit | 56300c9d002ec9730b57709e1e2d2643eb02f45f (patch) | |
| tree | b931c61c3d490e394f21388063714c88cb1daa87 /trusty/coverage/coverage_test.cpp | |
| parent | e261f6b41034f2190906e59c7a11475a6355048c (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
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
