Merge "Zygote: make libprocessgroup failures non-fatal" into lmp-dev

This commit is contained in:
Colin Cross
2014-07-14 22:39:03 +00:00
committed by Android (Google) Code Review

View File

@@ -439,8 +439,11 @@ static pid_t ForkAndSpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArra
if (!is_system_server) {
int rc = createProcessGroup(uid, getpid());
if (rc != 0) {
ALOGE("createProcessGroup(%d, %d) failed: %s", uid, pid, strerror(-rc));
RuntimeAbort(env);
if (rc == -EROFS) {
ALOGW("createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?");
} else {
ALOGE("createProcessGroup(%d, %d) failed: %s", uid, pid, strerror(-rc));
}
}
}