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:
committed by
Android (Google) Code Review
commit
22a56f7577
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user