commit | 7c4258c7248944598397eb796041afc95a1c46ad | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Jun 25 13:40:08 2018 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon Jun 25 13:40:08 2018 -0700 |
tree | c1710cde43dcd118ba42543e2891584ca345400a | |
parent | 037b50ec793155cc965a02cb03be91a6158b6866 [diff] |
dumpstate: fix double close. fdopen takes ownership of the fd it's given, but dump_stat_from_fd doesn't own the fd it's passed. These APIs should probably be cleaned up to pass a unique_fd to explicitly transfer ownership, since the caller immediately closes the fd afterwards, but until then, just dup. Test: mma Change-Id: Ie3a3c1b1951d6cc712850c326ca0bcfe46155a83