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

Commit b0412a5c authored by Christopher Ferris's avatar Christopher Ferris
Browse files

All debuggerd log output marked fatal.

This avoids the log daemon skipping some of the log output from
debuggerd.

Bug: 20846525
Change-Id: Ifed48814d76c7e855645b6d5487d5e6e1fcafd9e
parent aaf9c1b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -795,7 +795,7 @@ char* engrave_tombstone(pid_t pid, pid_t tid, int signal, int original_si_code,
  *detach_failed = dump_crash(&log, pid, tid, signal, original_si_code, abort_msg_address,
                              dump_sibling_threads, total_sleep_time_usec);

  ALOGI("\nTombstone written to: %s\n", path);
  _LOG(&log, logtype::BACKTRACE, "\nTombstone written to: %s\n", path);

  // Either of these file descriptors can be -1, any error is ignored.
  close(amfd);
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) {
  }

  if (write_to_logcat) {
    __android_log_buf_write(LOG_ID_CRASH, ANDROID_LOG_INFO, LOG_TAG, buf);
    __android_log_buf_write(LOG_ID_CRASH, ANDROID_LOG_FATAL, LOG_TAG, buf);
    if (write_to_activitymanager) {
      if (!android::base::WriteFully(log->amfd, buf, len)) {
        // timeout or other failure on write; stop informing the activity manager