Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa3c4e9d authored by Keun-young Park's avatar Keun-young Park Committed by android-build-merger
Browse files

Merge "add ueventd to shutdown critial process"

am: 7fe28d9d

Change-Id: Iee1acf30088b8ee446e4c49281bd07a8833492e2
parents 4c4f1f99 7fe28d9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();