diff options
Diffstat (limited to 'dumpstate/1.0/default/DumpstateDevice.cpp')
-rw-r--r-- | dumpstate/1.0/default/DumpstateDevice.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dumpstate/1.0/default/DumpstateDevice.cpp b/dumpstate/1.0/default/DumpstateDevice.cpp index 818a53127c..88623afd7f 100644 --- a/dumpstate/1.0/default/DumpstateDevice.cpp +++ b/dumpstate/1.0/default/DumpstateDevice.cpp @@ -18,6 +18,7 @@ #include "DumpstateDevice.h" +#include <hidl/HidlBinderSupport.h> #include <log/log.h> #include "DumpstateUtil.h" @@ -37,6 +38,11 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) { // this interface - since HIDL_FETCH_IDumpstateDevice() is not defined, this function will never // be called by dumpstate. + // Exit when dump is completed since this is a lazy HAL. + addPostCommandTask([]() { + exit(0); + }); + if (handle == nullptr || handle->numFds < 1) { ALOGE("no FDs\n"); return Void(); |