perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <>
Subject Re: speaking of $SIG{__DIE__}
Date Thu, 02 Mar 2000 06:16:35 GMT
On Wed, 1 Mar 2000, Bill Moseley wrote:

> It should be ok to exit in a __DIE__ handler.  That's what perlvar says.

there is a big difference between CORE::exit and Apache::exit, perlvar is
not refering to Apache::exit :)
but your handler works fine for me with 5.005_03 and 5.005_67 anyhow.

> If you don't call exit() then Apache generates its own error message, which
> is what I'm trying to override.  I think this is more issue.

maybe custom_response will help you:

my $r = shift;

$r->custom_response(500, "Child $$\n");

die "whoops";

View raw message