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 pe...@apache.org on 2004/12/13 05:29:38 UTC
svn commit: r111686 - /perl/modperl/trunk/lib/Apache/SizeLimit.pm
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