mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 09:13:34 +00:00
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
872e3ecaa1
commit
64f0fddc23
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user