Return-Path: Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 67803 invoked by uid 500); 3 Jan 2003 15:40:08 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 67781 invoked from network); 3 Jan 2003 15:40:08 -0000 Mime-Version: 1.0 X-Sender: nazgul@somewhere.com@puremessaging.com Message-Id: Date: Fri, 3 Jan 2003 10:40:04 -0500 To: embperl@perl.apache.org From: Kee Hinckley Subject: Terminating the current Apache process Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Can anyone suggest why the following is not working? It ought to terminate the current apache process and referesh the browser so that it reloads the same page, but from a different process. However the log messages I'm getting indicate that when the condition is met, the page is being reloaded over and over using the same process. [$ if ($set->{title} =~ /^\s*$/) $] [- use lib "$ENV{DOCUMENT_ROOT}/data"; use SWC::WebUtil; my %info; $info{msgs} = ["Empty title", "Process: $$"]; SWC::WebUtil::ReportError('mail.somewhere.com' 'webmaster@masscharterschools.org', \%info); $req_rec->child_terminate(); $req_rec->header_out("Refresh" => "0"); -] [$ endif $] My problem is an old one--sometimes the database returns a set of empty data. I'm still working on tracking that down, but this at least detects the problem and ought to deal with it. -- Kee Hinckley - Somewhere.Com, LLC http://consulting.somewhere.com/ I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's. --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org