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

Commit dc7fba4b authored by Orion Hodson's avatar Orion Hodson Committed by android-build-merger
Browse files

Merge "Add persist.zygote.core_dump property for coredumps" am: a36a69a9 am: 68b64b26

am: 2ff54244

Change-Id: Icf8bf17ab207861d9347973ae86794e415504ab2
parents 47b82309 2ff54244
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -276,8 +276,9 @@ static void EnableDebugger() {
    }
  }

  // We don't want core dumps, though, so set the soft limit on core dump size
  // to 0 without changing the hard limit.
  // Set the core dump size to zero unless wanted (see also coredump_setup in build/envsetup.sh).
  if (!GetBoolProperty("persist.zygote.core_dump", false)) {
    // Set the soft limit on core dump size to 0 without changing the hard limit.
    rlimit rl;
    if (getrlimit(RLIMIT_CORE, &rl) == -1) {
      ALOGE("getrlimit(RLIMIT_CORE) failed");
@@ -288,6 +289,7 @@ static void EnableDebugger() {
      }
    }
  }
}

// The debug malloc library needs to know whether it's the zygote or a child.
extern "C" int gMallocLeakZygoteChild;