Re: [squid-users] redirector question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 12 Aug 2004 15:10:15 +0200 (CEST)

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
Received on Thu Aug 12 2004 - 07:10:18 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT