This function is not documented as throwing an exception and callers don't

handle it.  Just silently fail.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28291 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-05-14 18:53:09 +00:00
parent 5b5cc5f2a1
commit 505f9c8839

View File

@ -132,9 +132,7 @@ void Process::PreventCoreFiles() {
#if HAVE_SETRLIMIT
struct rlimit rlim;
rlim.rlim_cur = rlim.rlim_max = 0;
int res = setrlimit(RLIMIT_CORE, &rlim);
if (res != 0)
ThrowErrno("Can't prevent core file generation");
setrlimit(RLIMIT_CORE, &rlim);
#endif
}