diff --git a/storaged/storaged.cpp b/storaged/storaged.cpp index aa3d1de73..54d429cd8 100644 --- a/storaged/storaged.cpp +++ b/storaged/storaged.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -192,6 +193,7 @@ void storaged_t::binderDied(const wp& who) { if (battery_properties != NULL && IInterface::asBinder(battery_properties) == who) { LOG_TO(SYSTEM, ERROR) << "batteryproperties service died, exiting"; + IPCThreadState::self()->stopProcess(); exit(1); } else { LOG_TO(SYSTEM, ERROR) << "unknown service died";