Merge "zygote: always log process exit reason." am: b14694b043 am: 1453059ae3

am: c4f129121e

Change-Id: Ib43f235adfb75b4c40f586ad76ea85cd12f34383
This commit is contained in:
Josh Gao
2017-08-02 22:22:38 +00:00
committed by android-build-merger

View File

@@ -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));
}
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));
}
ALOGI("Process %d exited due to signal (%d)", pid, WTERMSIG(status));
if (WCOREDUMP(status)) {
ALOGI("Process %d dumped core.", pid);
}