Changes in directory llvm/lib/System/Unix:

Process.inc updated: 1.15 -> 1.16
---
Log message:

This function is not documented as throwing an exception and callers don't
handle it.  Just silently fail.


---
Diffs of the changes:  (+1 -3)

 Process.inc |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)


Index: llvm/lib/System/Unix/Process.inc
diff -u llvm/lib/System/Unix/Process.inc:1.15 
llvm/lib/System/Unix/Process.inc:1.16
--- llvm/lib/System/Unix/Process.inc:1.15       Fri May 12 13:20:39 2006
+++ llvm/lib/System/Unix/Process.inc    Sun May 14 13:53:09 2006
@@ -132,9 +132,7 @@
 #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
 }
 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to