[compiler-rt] [compiler-rt] Avoid generating coredumps when piped to a tool (PR #83701)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 12 16:29:28 PDT 2024
================
@@ -10,7 +10,12 @@ int main() {
getrlimit(RLIMIT_CORE, &lim_core);
void *p;
if (sizeof(p) == 8) {
- assert(0 == lim_core.rlim_cur);
+#ifdef __linux__
+ // See comments in DisableCoreDumperIfNecessary().
+ assert(lim_core.rlim_cur == 1);
+#else
+ assert(lim_core.rlim_cur == 0);
----------------
vitalybuka wrote:
off-cause, it's a test
sorry
https://github.com/llvm/llvm-project/pull/83701
More information about the llvm-commits
mailing list