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

Commit 131f8d09 authored by Torne (Richard Coles)'s avatar Torne (Richard Coles) Committed by android-build-merger
Browse files

Merge "Don't try to create a process group when not root." into pi-dev am: 5526509f

am: bf62c96a

Change-Id: I7c90572f2adc29914ba0861dc53c312708b716f8
parents 94fedc2b bf62c96a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -666,7 +666,9 @@ static pid_t ForkAndSpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArra
      }
    }

    if (!is_system_server) {
    // If this zygote isn't root, it won't be able to create a process group,
    // since the directory is owned by root.
    if (!is_system_server && getuid() == 0) {
        int rc = createProcessGroup(uid, getpid());
        if (rc != 0) {
            if (rc == -EROFS) {