You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by pg...@apache.org on 2006/08/23 21:58:09 UTC

svn commit: r434145 - /perl/Apache-SizeLimit/branches/stable/lib/Apache/SizeLimit.pm

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 <si...@coreware.co.uk>

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 {