David:

I use this that i found in tips in embperl page:

[! 
sub cleanup
{ 
        while( ($name, $query) = each (%domain::query) )
        { 
                $query->finish(); 
        }
#       $domain::dbh->disconnect();
}

sub clean_exit 
{ 
        &cleanup(); 
        if( exists($ENV{MOD_PERL}) )
        {
                Apache::exit;
        }
        else
        {
                exit();
        }
}
!]

I have comented one line because it did not work for me but it closes the queries open.

CKG

 --- On Thu 03/06,  < [EMAIL PROTECTED] > wrote:
From:  [mailto: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Thu, 6 Mar 2003 15:48:21 -0500
Subject: Exit or die

Gerald

How do you exit or die without killing the child process under mod_perl

I see s reference in the documentation for Apache::exit.

There is nothing in the mod_perl man pages or on cpan for this.


Ruben Safir
Sole Founder of NYLXS and NY Fair Use http://fairuse.nylxs.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to