Merge "add ueventd to shutdown critial process" am: 7fe28d9d9a am: aa3c4e9def am: 939f0b03e8

am: 39f7c6b296

Change-Id: I23eff785c507587c47a557b27b2d9b2129c66462
This commit is contained in:
Keun-young Park 2017-05-18 21:19:22 +00:00 committed by android-build-merger
commit 84f262b3f3

View file

@ -331,7 +331,7 @@ void DoReboot(unsigned int cmd, const std::string& reason, const std::string& re
// keep debugging tools until non critical ones are all gone.
const std::set<std::string> kill_after_apps{"tombstoned", "logd", "adbd"};
// watchdogd is a vendor specific component but should be alive to complete shutdown safely.
const std::set<std::string> to_starts{"watchdogd", "vold"};
const std::set<std::string> to_starts{"watchdogd", "vold", "ueventd"};
ServiceManager::GetInstance().ForEachService([&kill_after_apps, &to_starts](Service* s) {
if (kill_after_apps.count(s->name())) {
s->SetShutdownCritical();