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

Commit 6d747cac authored by Josh Gao's avatar Josh Gao
Browse files

zygote: always log process exit reason.

Multiple people have run into problems where apps disappear without a
trace. Always log process exit, so that it's clear when a process is
intentionally exiting. (The amount of extraneous logging this generates
is probably minimal.)

Test: none
Change-Id: I77169da4d0f05dabfe38490757975ad7ad0247b2
parent ed3e6d47
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -108,13 +108,9 @@ static void SigChldHandler(int /*signal_number*/) {
     // changes its locking strategy or its use of syscalls within the
     // lazy-init critical section, its use here may become unsafe.
    if (WIFEXITED(status)) {
      if (WEXITSTATUS(status)) {
      ALOGI("Process %d exited cleanly (%d)", pid, WEXITSTATUS(status));
      }
    } else if (WIFSIGNALED(status)) {
      if (WTERMSIG(status) != SIGKILL) {
      ALOGI("Process %d exited due to signal (%d)", pid, WTERMSIG(status));
      }
      if (WCOREDUMP(status)) {
        ALOGI("Process %d dumped core.", pid);
      }