perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos" <ckas...@myway.com>
Subject RE: Exit or die
Date Fri, 07 Mar 2003 15:42:22 GMT

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,  < david@mrbrklyn.com > wrote:
From:  [mailto: david@mrbrklyn.com]
To: embperl@perl.apache.org
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: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org



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

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


Mime
View raw message