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

Commit c9722bd8 authored by Narayan Kamath's avatar Narayan Kamath Committed by Android Git Automerger
Browse files

am 6c2e8062: am 70344223: am fbb0ab02: Merge "Fix broken logging in Zygote.cpp."

* commit '6c2e8062':
  Fix broken logging in Zygote.cpp.
parents 8c636abb 6c2e8062
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -92,14 +92,10 @@ static void SigChldHandler(int /*signal_number*/) {
    if (WIFEXITED(status)) {
      if (WEXITSTATUS(status)) {
        ALOGI("Process %d exited cleanly (%d)", pid, WEXITSTATUS(status));
      } else if (false) {
        ALOGI("Process %d exited cleanly (%d)", pid, WEXITSTATUS(status));
      }
    } else if (WIFSIGNALED(status)) {
      if (WTERMSIG(status) != SIGKILL) {
        ALOGI("Process %d exited cleanly (%d)", pid, WTERMSIG(status));
      } else if (false) {
        ALOGI("Process %d exited cleanly (%d)", pid, WTERMSIG(status));
        ALOGI("Process %d exited due to signal (%d)", pid, WTERMSIG(status));
      }
#ifdef WCOREDUMP
      if (WCOREDUMP(status)) {
@@ -117,8 +113,10 @@ static void SigChldHandler(int /*signal_number*/) {
    }
  }

  if (pid < 0) {
    ALOGW("Zygote SIGCHLD error in waitpid: %d", errno);
  // Note that we shouldn't consider ECHILD an error because
  // the secondary zygote might have no children left to wait for.
  if (pid < 0 && errno != ECHILD) {
    ALOGW("Zygote SIGCHLD error in waitpid: %s", strerror(errno));
  }
}