On 7/1/05, Mark Stosberg <suppressed> 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/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.