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

Commit 593aab73 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

Zygote: Better logging for setgroups failures.

bug: 28865594
Change-Id: I88590afe6a05e2d1967c9bca74c79de3871440b8
parent 867f6d5d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -176,7 +176,9 @@ static void SetGids(JNIEnv* env, jintArray javaGids) {
  }
  int rc = setgroups(gids.size(), reinterpret_cast<const gid_t*>(&gids[0]));
  if (rc == -1) {
    RuntimeAbort(env, __LINE__, "setgroups failed");
    std::ostringstream oss;
    oss << "setgroups failed: " << strerror(errno) << ", gids.size=" << gids.size();
    RuntimeAbort(env, __LINE__, oss.str().c_str());
  }
}