'die' in a CleanupHandler

2003-09-08 Thread Ray Zimmerman
Just curious ... what happens if I call 'die' in a mod_perl handler 
(especially a CleanupHandler)?  Does it actually kill the apache 
child or does something catch the exception before that happens?

--
 Ray Zimmerman  / e-mail: [EMAIL PROTECTED] / 428-B Phillips Hall
  Sr Research  /   phone: (607) 255-9645  /  Cornell University
   Associate  /  FAX: (815) 377-3932 /   Ithaca, NY  14853


Re: 'die' in a CleanupHandler

2003-09-08 Thread Perrin Harkins
On Mon, 2003-09-08 at 16:10, Ray Zimmerman wrote:
 Just curious ... what happens if I call 'die' in a mod_perl handler 
 (especially a CleanupHandler)?  Does it actually kill the apache 
 child or does something catch the exception before that happens?

The latter.  Your 'die' is caught by mod_perl.  Is there something
you're trying to do?

- Perrin


Re: 'die' in a CleanupHandler

2003-09-08 Thread Ray Zimmerman
At 6:19 PM -0400 9/8/03, Perrin Harkins wrote:
On Mon, 2003-09-08 at 16:10, Ray Zimmerman wrote:
 Just curious ... what happens if I call 'die' in a mod_perl handler
 (especially a CleanupHandler)?  Does it actually kill the apache
 child or does something catch the exception before that happens?
The latter.  Your 'die' is caught by mod_perl.  Is there something
you're trying to do?
I was just considering how to handle it when a serious error occurs 
during a CleanupHandler and was wondering what the difference was 
between 'warn' and 'die' in that context.

--
 Ray Zimmerman  / e-mail: [EMAIL PROTECTED] / 428-B Phillips Hall
  Sr Research  /   phone: (607) 255-9645  /  Cornell University
   Associate  /  FAX: (815) 377-3932 /   Ithaca, NY  14853