forked from OSchip/llvm-project
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:
parent
96749c4cec
commit
f64397ba1a
|
|
@ -132,9 +132,7 @@ void Process::PreventCoreFiles() {
|
||||||
#if HAVE_SETRLIMIT
|
#if HAVE_SETRLIMIT
|
||||||
struct rlimit rlim;
|
struct rlimit rlim;
|
||||||
rlim.rlim_cur = rlim.rlim_max = 0;
|
rlim.rlim_cur = rlim.rlim_max = 0;
|
||||||
int res = setrlimit(RLIMIT_CORE, &rlim);
|
setrlimit(RLIMIT_CORE, &rlim);
|
||||||
if (res != 0)
|
|
||||||
ThrowErrno("Can't prevent core file generation");
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue