cleanup_register(..) works but not push_handlers(PerlCleanupHandler ..)

2010-08-11 Thread Louis-David Mitterrand
Hi, Using modperl 2.0.4 and HTML::Mason I noticed the following problem: $r->push_handlers(PerlCleanupHandler => sub {...}) is not executed, however: $r->pool->cleanup_register({}, $arg) works fine. In both cases I use: $r->connection()->

Re: Cleanup_register

2004-12-09 Thread Geoffrey Young
Denis Banovic wrote: > Hi everybody! > > I have a small problem with the APR::Pool::cleanup_register; > I get this error_message: > ModPerl::Registry: Usage: APR::Pool::cleanup_register(p, cv, arg=Nullsv) at > > shift->pool->cle

Cleanup_register

2004-12-08 Thread Denis Banovic
Hi everybody! I have a small problem with the APR::Pool::cleanup_register; I get this error_message: ModPerl::Registry: Usage: APR::Pool::cleanup_register(p, cv, arg=Nullsv) at In script a.pl it works fine, in other one I get this error message. Here is the piece of code: use vars