You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Dominique Quatravaux <do...@idealx.com> on 2005/03/31 14:50:09 UTC

[PATCH] Minor typo in Apache2::Status

While unsuccessfully (as of yet) trying to make a test case out of my
Apache->server->push_handlers() bug, I noticed that Apache2::Status
does Apache->push_handlers() the mod_perl 1 way. Here is a patch that
fixes that.

Index: lib/Apache2/Status.pm
===================================================================
--- lib/Apache2/Status.pm       (revision 159573)
+++ lib/Apache2/Status.pm       (working copy)
@@ -668,7 +668,7 @@
 
 $Apache2::Status::BGraphCache ||= 0;
 if ($Apache2::Status::BGraphCache) {
-    Apache2->push_handlers(PerlChildExitHandler => sub {
+    Apache2->server->push_handlers(PerlChildExitHandler => sub {
         unlink keys %Apache2::Status::BGraphCache;
     });
 }


-- 
Dominique QUATRAVAUX                           Ingénieur senior
01 44 42 00 08                                 IDEALX


Re: [PATCH] Minor typo in Apache2::Status

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Dominique Quatravaux wrote:
> While unsuccessfully (as of yet) trying to make a test case out of my
> Apache->server->push_handlers() bug, I noticed that Apache2::Status
> does Apache->push_handlers() the mod_perl 1 way. Here is a patch that
> fixes that.

thanks, committed.

I also added a test to make sure that syntax actually works - I wasn't sure :)

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org