Merge "Merge "Log the errno if calling fork() fails" am: d84afeb673 am: 9bd0d906b4 am: 974e62c820" into tm-d1-dev-plus-aosp

This commit is contained in:
Automerger Merge Worker
2022-08-01 19:59:41 +00:00
committed by Android (Google) Code Review

View File

@@ -2127,6 +2127,8 @@ pid_t zygote::ForkCommon(JNIEnv* env, bool is_system_server,
// Reset the fd to the unsolicited zygote socket
gSystemServerSocketFd = -1;
} else if (pid == -1) {
ALOGE("Failed to fork child process: %s (%d)", strerror(errno), errno);
} else {
ALOGD("Forked child process %d", pid);
}