Author: pgollucci
Date: Wed Aug 23 12:58:09 2006
New Revision: 434145
URL: http://svn.apache.org/viewvc?rev=434145&view=rev
Log:
merge USE_SMAPS fix from trunk
Reported by: Simon Luff <[EMAIL PROTECTED]>
Modified:
perl/Apache-SizeLimit/branches/stable/lib/Apache/SizeLimit.pm
Modified: perl/Apache-SizeLimit/branches/stable/lib/Apache/SizeLimit.pm
URL:
http://svn.apache.org/viewvc/perl/Apache-SizeLimit/branches/stable/lib/Apache/SizeLimit.pm?rev=434145&r1=434144&r2=434145&view=diff
==============================================================================
--- perl/Apache-SizeLimit/branches/stable/lib/Apache/SizeLimit.pm (original)
+++ perl/Apache-SizeLimit/branches/stable/lib/Apache/SizeLimit.pm Wed Aug 23
12:58:09 2006
@@ -32,7 +32,6 @@
__PACKAGE__->set_check_interval(1);
$REQUEST_COUNT = 1;
-$USE_SMAPS = 1;
use constant IS_WIN32 => $Config{'osname'} eq 'MSWin32' ? 1 : 0;
@@ -187,6 +186,7 @@
*_platform_getppid = \&_linux_getppid;
if ( eval { require Linux::Smaps } && Linux::Smaps->new($$) ) {
+ $USE_SMAPS = 1;
*_platform_check_size = \&_linux_smaps_size_check;
}
else {