Re: Windows port merge - Service support (part 1) [PATCH]

From: Guido Serassio <serassio@dont-contact.us>
Date: Mon, 21 Apr 2003 18:21:56 +0200

Hi Henrik,

Il 17.48 21/04/2003 Henrik Nordstrom ha scritto:

>On Monday 21 April 2003 15.40, Guido Serassio wrote:
>
> > The daemon mode is removed only when Squid is build on Cygwin or
> > native mode with USE_WIN32_SERVICE defined (a new configure option
> > --enable-win32-service is defined to enable this, but still to be
> > merged). When this happens, the Windows service functionality
> > replace the daemon mode.
>
>Sounds good.
>
>But please try to do this with two defines if possible.
>
>One define which removes the daemon mode.

May be that this is not needed, see next.

>Another define which adds the win32 service code.

This is already here.

>The two features are not necessarily mutually exclusive in code
>(ofcourse only one may be running at a given time, but the same
>binary could in theory support both modes of opertion), and one might
>want to build Squid without..

On Cygwin this should be feasible: when starting as a service opt_no_daemon
is automatically set to 1, when starting in a "traditional" mode
opt_no_daemon depends from -N command line switch. It would be better
change opt_no_daemon to a global variable.

On Native Windows the -N option makes nothing, so the only question is:
It should be listed ?

Regards

Guido

-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
E-mail: guido.serassio@serassio.it
WWW: http://www.serassio.it
Received on Mon Apr 21 2003 - 10:22:47 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:41 MST