summaryrefslogtreecommitdiff
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-14 18:53:09 +0000
committerChris Lattner <sabre@nondot.org>2006-05-14 18:53:09 +0000
commit505f9c88397ffb036c41018abb4112958b487fe3 (patch)
treef9446f33463259ee97d34a3b2bb01f8df0d7ab17 /lib/System/Unix
parent5b5cc5f2a1aa9741fe81052a6a2d5dcf1d5bd533 (diff)
downloadllvm-505f9c88397ffb036c41018abb4112958b487fe3.tar.gz
llvm-505f9c88397ffb036c41018abb4112958b487fe3.tar.bz2
llvm-505f9c88397ffb036c41018abb4112958b487fe3.tar.xz
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
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Process.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc
index 32733d6136..0d79ad9bee 100644
--- a/lib/System/Unix/Process.inc
+++ b/lib/System/Unix/Process.inc
@@ -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
}