Merge "init: only print backtraces on subsequent reboots with a value"

This commit is contained in:
Tom Cherry 2020-04-01 00:53:10 +00:00 committed by Gerrit Code Review
commit e55818cd83

View file

@ -489,8 +489,10 @@ uint32_t HandlePropertySet(const std::string& name, const std::string& value,
} }
LOG(INFO) << "Received sys.powerctl='" << value << "' from pid: " << cr.pid LOG(INFO) << "Received sys.powerctl='" << value << "' from pid: " << cr.pid
<< process_log_string; << process_log_string;
if (!value.empty()) {
DebugRebootLogging(); DebugRebootLogging();
} }
}
// If a process other than init is writing a non-empty value, it means that process is // If a process other than init is writing a non-empty value, it means that process is
// requesting that init performs a restorecon operation on the path specified by 'value'. // requesting that init performs a restorecon operation on the path specified by 'value'.