Merge "Add persist.zygote.core_dump property for coredumps"
This commit is contained in:
@@ -273,8 +273,9 @@ static void EnableDebugger() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We don't want core dumps, though, so set the soft limit on core dump size
|
// Set the core dump size to zero unless wanted (see also coredump_setup in build/envsetup.sh).
|
||||||
// to 0 without changing the hard limit.
|
if (!GetBoolProperty("persist.zygote.core_dump", false)) {
|
||||||
|
// Set the soft limit on core dump size to 0 without changing the hard limit.
|
||||||
rlimit rl;
|
rlimit rl;
|
||||||
if (getrlimit(RLIMIT_CORE, &rl) == -1) {
|
if (getrlimit(RLIMIT_CORE, &rl) == -1) {
|
||||||
ALOGE("getrlimit(RLIMIT_CORE) failed");
|
ALOGE("getrlimit(RLIMIT_CORE) failed");
|
||||||
@@ -284,6 +285,7 @@ static void EnableDebugger() {
|
|||||||
ALOGE("setrlimit(RLIMIT_CORE) failed");
|
ALOGE("setrlimit(RLIMIT_CORE) failed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The debug malloc library needs to know whether it's the zygote or a child.
|
// The debug malloc library needs to know whether it's the zygote or a child.
|
||||||
|
|||||||
Reference in New Issue
Block a user