diff options
author | Josh Gao <jmgao@google.com> | 2019-03-05 13:01:25 -0800 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2019-03-06 13:03:30 -0800 |
commit | 3ed90b75dac12f98f9e82cdbc32ea3c8aa7711dc (patch) | |
tree | d560ae78fa3841ca642710fa134e13e1fdafbe04 /libunwindstack/tests/MapInfoCreateMemoryTest.cpp | |
parent | 79a43cf135804fefe74811104f7782f0eeb1bf54 (diff) |
adbd: cleanups in remount/verity.
1. Don't clear O_CLOEXEC on an fd we're duping to stdin/out/err: dup2
does that for us if oldfd != newfd, and we know the fd can't be
stdin/out/err.
2. Use unique_fd.
3. Remove gotos by breaking the remount logic into its own function.
Test: mma
Change-Id: If9929e7f20de445322fd498e1379a2d4e572cb52
Diffstat (limited to 'libunwindstack/tests/MapInfoCreateMemoryTest.cpp')
0 files changed, 0 insertions, 0 deletions