projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b5cc5f
)
This function is not documented as throwing an exception and callers don't
author
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 18:53:09 +0000
(18:53 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 18:53:09 +0000
(18:53 +0000)
handle it. Just silently fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28291
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Unix/Process.inc
patch
|
blob
|
history
diff --git
a/lib/System/Unix/Process.inc
b/lib/System/Unix/Process.inc
index 32733d61366863bf47d203584d2b44eb265d3598..0d79ad9beec8768606161db14f054256f2b3b513 100644
(file)
--- 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
}