On Thu, 12 Aug 2004, DEHLINGER Kevin wrote:
I must do some operations just while the redirector is exiting (for exemple when i do a /etc/init.d/squid (reload|restart|stop) ), i've tried to catch SIGINT but squid seems not the kill the redirectors programms with that...
Squid does not kill redirectors, it just closes the input to them..
Which means your redirector should keep running until it receives EOF on standard input.
In perl this is a loop like
while (<>) {
// process request
}The loop exits on EOF.
Regards Henrik
