perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Gormley <>
Subject DESTROY not being called on stop/restart
Date Tue, 15 Sep 2009 19:12:21 GMT
Hi all

I'm finding that DESTROY blocks on objects stored in lexical variables
are not being called on apachectl stop / restart.

These lexicals are destroyed as they should be when they go out of

I've resorted to storing weak refs to these objects in a hash and
cleaning them up with a child exit handler, but from what I read in the
docs, DESTROY blocks should be supported, no?

I'm using mod_perl 2.0.4 with apache 2.2.9, perl 5.10 and a prefork MPM.

any ideas?



View raw message