Search squid archive
squid not killing my url_rewriters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: squid not killing my url_rewriters
- From: Chris Woodfield <rekoil@xxxxxxxxxxxxx>
- Date: Fri, 18 Jan 2008 19:46:42 -0500
Hi all,
I'm working on a custom url_rewriter helper app, written in perl, that
translates incoming URL requests to custom URLs using a config file
that is loaded at startup and is polled for changes at regular
intervals.
In order to handle the update polling, the script uses POE for event
handling, using POE::Filter::Line to handle incoming URL requests from
squid and then a delay to handle the config poll interval.
The problem I've found, which I didn't have when the first iteration
of the script was simply a while(<>) loop, is that when squid exits or
is HUP'ed, it kills the existing helper apps by sending an EOF (Ctrl-
D). However, POE's signal handling doesn't seem to be able to respond
to EOF (only KILL, HUP, etc), and as such, the children never exit.
Anyone know enough about POE to let me know if I'm missing something I
can do in my code in order to enable POE's handling the EXIT/EOF/CRTL-
D signal? Or a way to make squid use KILL instead of EOF to kill off
the url rewriters for sure?
Thanks,
-Chris
[Index of Archives]
[Linux Audio Users]
[Samba]
[Big List of Linux Books]
[Linux USB]
[Yosemite News]