diff options
author | Josh Gao <jmgao@google.com> | 2019-04-18 16:46:42 -0700 |
---|---|---|
committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2020-03-13 23:30:46 +0100 |
commit | a9981a8f6f58dc42a69b4f7e6d441def5dbd84e0 (patch) | |
tree | 7d848382026a874e74f6aa926fd04cc7190c3d3e /liblog/tests/Android.bp | |
parent | 0074ceb72f1ea7950d1c425a186287eaf9b11d30 (diff) | |
download | system_core-a9981a8f6f58dc42a69b4f7e6d441def5dbd84e0.tar.gz system_core-a9981a8f6f58dc42a69b4f7e6d441def5dbd84e0.tar.bz2 system_core-a9981a8f6f58dc42a69b4f7e6d441def5dbd84e0.zip |
adb: fix double close in wait-for-*.
unique_fd's implicit conversion to int allows the following code to
compile without error, leading to a double close:
std::function<void(unique_fd)> func = [](int x) { close(x); };
func(unique_fd(42));
Test: treehugger
Change-Id: I948ecda3a12738b3af6444fe2902d2f7b80e1b4c
Diffstat (limited to 'liblog/tests/Android.bp')
0 files changed, 0 insertions, 0 deletions