summaryrefslogtreecommitdiffstats
path: root/init/service.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-10-15 17:21:48 -0700
committerTom Cherry <tomcherry@google.com>2018-10-15 17:21:48 -0700
commitad9e7eaf2d486589f0623a7b5f68c6a261e4745b (patch)
tree512291097a4c38eab18194217fd51462a435a38a /init/service.cpp
parent83093e7ef82ed04787fc1434a41775ff5d9d836a (diff)
downloadsystem_core-ad9e7eaf2d486589f0623a7b5f68c6a261e4745b.tar.gz
system_core-ad9e7eaf2d486589f0623a7b5f68c6a261e4745b.tar.bz2
system_core-ad9e7eaf2d486589f0623a7b5f68c6a261e4745b.zip
init: clarify some text/README about 'critical' services
'Critical' services have rebooted into bootloader, like all other catastrophic init crashes, for years now. Update the text to match. Test: n/a Change-Id: Icfc41bf3e383958f14ecfaab9ca187e2c3dc7fd9
Diffstat (limited to 'init/service.cpp')
-rw-r--r--init/service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/service.cpp b/init/service.cpp
index a3e59534e..0b1425d77 100644
--- a/init/service.cpp
+++ b/init/service.cpp
@@ -369,7 +369,7 @@ void Service::Reap(const siginfo_t& siginfo) {
return;
}
- // If we crash > 4 times in 4 minutes, reboot into recovery.
+ // If we crash > 4 times in 4 minutes, reboot into bootloader.
boot_clock::time_point now = boot_clock::now();
if ((flags_ & SVC_CRITICAL) && !(flags_ & SVC_RESTART)) {
if (now < time_crashed_ + 4min) {