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

Commit d60804d5 authored by Colin Cross's avatar Colin Cross Committed by Android (Google) Code Review
Browse files

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

parents 93a2600f 3089bed1
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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) {
            if (rc == -EROFS) {
                ALOGW("createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?");
            } else {
                ALOGE("createProcessGroup(%d, %d) failed: %s", uid, pid, strerror(-rc));
            RuntimeAbort(env);
            }
        }
    }