Hi,
Il 01.02 26/04/2001 Robert Collins ha scritto:
>Three options:
>
>in main.c put a couple of stub entry points that the service module can
>call -
>
>#ifdef _SQUID_CYGWIN_
>void
>servicestartReconfigure(void) {
>MainDoReconfigure()
>}
>
>and the prototype should go in protos.h
>
>or
>
>change the static declaration to be non-static.
>
>or - and this is what I suggest as an easy route -
>
>simply raise the appropriate signal to the child
>
>(see main.c - trace what happens when you run squid -k reconfigure).
>
>Rob
>
Hi,
I choose the second solutions for 3 main reasons:
- I don't want add to many code to base HEAD Squid.
- I want to make code that's run on both CygWin and MS VisualStudio
environments, and signal don't works on MS as on Unix.
- Changing the static declaration of rotate_logs and reconfigure to non
static, make possible to call this functions from the cachemgr interface,
like the shutdown function.
Thanks for suggestions.
Guido
-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
Tel. : +39.011.610749
E-mail: serassio@interfree.it
serassio@libero.it
WWW: http://serassio.interfree.it
Received on Thu Apr 26 2001 - 06:13:15 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:49 MST