On Mon, 22 May 2000, Ian Kallen wrote:

> 
> BSD::Resource passed all of the make test tests but when I tried enabling
> Apache::Resource on a rh6.1 installation the error log barfed with these:
> 
> Ouch!  malloc failed in malloc_block()

on problem is that the values were not coverted to MB, patch below fixes
that.  this error is correct when the limit has been reached and clearly
isn't graceful, you might want to use Apache::SizeLimit instead.

--- lib/Apache/Resource.pm      2000/03/23 04:48:56     1.9
+++ lib/Apache/Resource.pm      2000/05/23 18:41:44
@@ -26,7 +26,7 @@
 sub DEFAULT_RLIMIT_FSIZE () { 10 } #file size  (MB)
 sub DEFAULT_RLIMIT_STACK () { 20 } #stack size (MB)
 
-my %is_mb = map {$_,1} qw{DATA RSS STACK FSIZE CORE MEMLOCK};
+my %is_mb = map {$_,1} qw{DATA RSS STACK FSIZE CORE MEMLOCK AS};
 
 sub debug { print STDERR @_ if $Debug }
 


Reply via email to