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

Commit 445295b0 authored by Zimuzo Ezeozue's avatar Zimuzo Ezeozue Committed by android-build-merger
Browse files

Merge "Identify post-apexd crashing processes" am: 91fa1403 am: 9469df05

am: 5d97b68f

Change-Id: Id1cdfce8c2225b8ec98eb0ff210643e5ab1be006
parents 9a1e4457 5d97b68f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -406,7 +406,7 @@ void Service::Reap(const siginfo_t& siginfo) {


    // If we crash > 4 times in 4 minutes, reboot into bootloader or set crashing property
    // If we crash > 4 times in 4 minutes, reboot into bootloader or set crashing property
    boot_clock::time_point now = boot_clock::now();
    boot_clock::time_point now = boot_clock::now();
    if (((flags_ & SVC_CRITICAL) || classnames_.count("updatable")) && !(flags_ & SVC_RESTART)) {
    if (((flags_ & SVC_CRITICAL) || !pre_apexd_) && !(flags_ & SVC_RESTART)) {
        if (now < time_crashed_ + 4min) {
        if (now < time_crashed_ + 4min) {
            if (++crash_count_ > 4) {
            if (++crash_count_ > 4) {
                if (flags_ & SVC_CRITICAL) {
                if (flags_ & SVC_CRITICAL) {