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

Commit 7dc461f4 authored by Narayan Kamath's avatar Narayan Kamath Committed by android-build-merger
Browse files

Zygote: Better logging for setgroups failures. am: 593aab73

am: f72999b8

Change-Id: I0352a0297b47065e61bb5bfa93de1745fa3fb499
parents 2f6aac33 f72999b8
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());
  }
}