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

handle it.  Just silently fail.

llvm-svn: 28291
This commit is contained in:
Chris Lattner 2006-05-14 18:53:09 +00:00
parent 872e3ecaa1
commit 64f0fddc23

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
}