From 23aa17ba42e1403a993386964483ad417135df4b Mon Sep 17 00:00:00 2001 From: Zimuzo Ezeozue Date: Mon, 4 Feb 2019 20:11:43 +0000 Subject: [PATCH] Reland: "Identify post-apexd crashing processes" This reverts commit 60b89aee4c00020124732a82095663d4b5a9aefb. Reason for revert: Blocking change merged, Icdfbdcc1efca540ac854d4df79e07ee61fca559f Change-Id: Iec7f0b28ca3326d1dc1d86304751eee5e941235e --- init/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/service.cpp b/init/service.cpp index 272809f7c..638dc5a07 100644 --- a/init/service.cpp +++ b/init/service.cpp @@ -369,7 +369,7 @@ void Service::Reap(const siginfo_t& siginfo) { // If we crash > 4 times in 4 minutes, reboot into bootloader or set crashing property 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 (++crash_count_ > 4) { if (flags_ & SVC_CRITICAL) {