in reply to Don't understand END blocks in mod_perl

Assuming you're using mod_perl 1.X, check out docs about END blocks. Basically, END blocks are executed only when a child exits, not when a request is finished.

Also, check out your PERL_DESTRUCT_LEVEL environment variable setting. This may also affect whether END blocks are executed or not.

Hope this helps.

Liz

  • Comment on Re: Don't understand END blocks in mod_perl

Replies are listed 'Best First'.
Re: Re: Don't understand END blocks in mod_perl
by Mur (Pilgrim) on Sep 25, 2003 at 19:49 UTC
    Yeah, I've read that (it's basically word-for-word what is in the Eagle book by Stein & MacEachern). It's possible that the PERL_DESTRUCT_LEVEL setting is what's preventing the END blocks from running where I think they should. I'll look into that.
    --
    Jeff Boes
    Database Engineer
    Nexcerpt, Inc.
    vox 269.226.9550 ext 24
    fax 269.349.9076
     http://www.nexcerpt.com
    ...Nexcerpt...Connecting People With Expertise