Return-Path: Delivered-To: modperl-cvs-archive@hyperreal.org Received: (qmail 14567 invoked by uid 6000); 16 Apr 1999 05:14:22 -0000 Received: (qmail 14558 invoked by uid 182); 16 Apr 1999 05:14:20 -0000 Date: 16 Apr 1999 05:14:20 -0000 Message-ID: <19990416051420.14557.qmail@hyperreal.org> From: ix@hyperreal.org To: modperl-cvs@hyperreal.org Subject: cvs commit: modperl/lib/Apache SizeLimit.pm Sender: modperl-cvs-owner@apache.org Precedence: bulk Reply-To: modperl-cvs@apache.org ix 99/04/15 22:14:20 Modified: . Changes lib/Apache SizeLimit.pm Log: Change Apache::SizeLimit so that it supports Solaris 2.6 and above Revision Changes Path 1.281 +3 -0 modperl/Changes Index: Changes =================================================================== RCS file: /home/cvs/modperl/Changes,v retrieving revision 1.280 retrieving revision 1.281 diff -u -r1.280 -r1.281 --- Changes 1999/04/07 19:27:27 1.280 +++ Changes 1999/04/16 05:14:18 1.281 @@ -8,6 +8,9 @@ =item 1.19_01-dev +Change Apache::SizeLimit so that it supports Solaris 2.6 and above +() + Fixed apaci/load_modules.pl.PL to properly fixup log_agent and log_referer when loaded as DSOs. () 1.4 +5 -5 modperl/lib/Apache/SizeLimit.pm Index: SizeLimit.pm =================================================================== RCS file: /home/cvs/modperl/lib/Apache/SizeLimit.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- SizeLimit.pm 1999/01/18 04:31:15 1.3 +++ SizeLimit.pm 1999/04/16 05:14:20 1.4 @@ -83,14 +83,14 @@ (with the C function), and see if the CHECK_EVERY_N_REQUESTS option is of benefit. -=item solaris 2.6 +=item solaris 2.6 and above For solaris we simply retrieve the size of /proc/self/as, which contains the address-space image of the process, and convert to KB. -NOTE: This is only known to work for solaris 2.6. Evidently the /proc -filesystem has changed between 2.5.1 and 2.6. Can anyone confirm or -deny? +NOTE: This is only known to work for solaris 2.6 and above. Evidently +the /proc filesystem has changed between 2.5.1 and 2.6. Can anyone +confirm or deny? =item *bsd* @@ -130,7 +130,7 @@ BEGIN { # decide at compile time how to check for a process' memory size. if (($Config{'osname'} eq 'solaris') && - ($Config{'osvers'} eq '2.6')) { + ($Config{'osvers'} >= '2.6')) { $HOW_BIG_IS_IT = \&solaris_2_6_size_check; } elsif ($Config{'osname'} eq 'linux') { $HOW_BIG_IS_IT = \&linux_size_check;