| commit | ef14ff6512d7b2e20aa3206dff820b5f90285420 | [log] [tgz] |
|---|---|---|
| author | Kostya Serebryany <kcc@google.com> | Fri Jan 06 02:12:25 2012 +0000 |
| committer | Kostya Serebryany <kcc@google.com> | Fri Jan 06 02:12:25 2012 +0000 |
| tree | 6ab043f48f9c8d9ffb55c9ed7000ecf5ac2589d6 | |
| parent | b7a76d19207818f0b26b0a6559982ecfad5cbc3b [diff] [blame] |
[asan] move more stuff to OS-specific files git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147647 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc index cb50be9..bd92617 100644 --- a/lib/asan/asan_linux.cc +++ b/lib/asan/asan_linux.cc
@@ -244,6 +244,12 @@ CHECK(AddrIsInStack((uintptr_t)&attr)); } +void AsanDisableCoreDumper() { + struct rlimit nocore; + nocore.rlim_cur = 0; + nocore.rlim_max = 0; + setrlimit(RLIMIT_CORE, &nocore); +} } // namespace __asan