On 7/1/05, Mark Stosberg <[EMAIL PROTECTED]> wrote:
> > # If something goes wrong, make sure to stop the HTTP server.
> > sub cleanup { kill(9,$pid) }
> > $SIG{__DIE__}=\&cleanup;
> 
> Would it be better to put this in an END block? I'm not sure if this
> signal gets thrown at a normal exit. I use END blocks in test scripts
> for stuff like this and they work well.

Also, is a kill 9 really necesary?  It seems a little overkill (pun
intended :D).  kill 9 should only be done as a last resort if the
process will not die on it's own.

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to