Author: perrin Date: Sun Dec 12 20:29:37 2004 New Revision: 111686 URL: http://svn.apache.org/viewcvs?view=rev&rev=111686 Log: move check for threaded MPM to compile time Modified: perl/modperl/trunk/lib/Apache/SizeLimit.pm
Modified: perl/modperl/trunk/lib/Apache/SizeLimit.pm Url: http://svn.apache.org/viewcvs/perl/modperl/trunk/lib/Apache/SizeLimit.pm?view=diff&rev=111686&p1=perl/modperl/trunk/lib/Apache/SizeLimit.pm&r1=111685&p2=perl/modperl/trunk/lib/Apache/SizeLimit.pm&r2=111686 ============================================================================== --- perl/modperl/trunk/lib/Apache/SizeLimit.pm (original) +++ perl/modperl/trunk/lib/Apache/SizeLimit.pm Sun Dec 12 20:29:37 2004 @@ -46,6 +46,9 @@ BEGIN { + die "Apache::SizeLimit at the moment works only with non-threaded MPMs" + if Apache::MPM->is_threaded(); + # decide at compile time how to check for a process' memory size. if (SOLARIS && $Config{'osvers'} >= 2.6) { @@ -216,9 +219,6 @@ sub handler { my $r = shift; - - die "Apache::SizeLimit at the moment works only with non-threaded MPMs" - if Apache::MPM->is_threaded(); if ($r->is_initial_req()) { # we want to operate in a cleanup handler