From a3d0a19d0a7bf6ff1ac6aabb31a7bcad70ad8375 Mon Sep 17 00:00:00 2001 From: hno <> Date: Wed, 31 May 2000 13:01:41 +0000 Subject: [PATCH] Restored the #if USE_UNLINKD statements. These are used by the --disable-unlinkd option. --- src/cache_cf.cc | 4 +++- src/cf.data.pre | 3 ++- src/main.cc | 6 +++++- src/protos.h | 4 +++- src/structs.h | 4 +++- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 173ab67993..83106cb840 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.348 2000/05/31 05:02:11 wessels Exp $ + * $Id: cache_cf.cc,v 1.349 2000/05/31 07:01:41 hno Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -360,7 +360,9 @@ configDoConfigure(void) #if USE_DNSSERVERS requirePathnameExists("cache_dns_program", Config.Program.dnsserver); #endif +#if USE_UNLINKD requirePathnameExists("unlinkd_program", Config.Program.unlinkd); +#endif if (Config.Program.redirect) requirePathnameExists("redirect_program", Config.Program.redirect->key); if (Config.Program.authenticate) diff --git a/src/cf.data.pre b/src/cf.data.pre index b89a7a795b..b80383eced 100644 --- a/src/cf.data.pre +++ b/src/cf.data.pre @@ -1,6 +1,6 @@ # -# $Id: cf.data.pre,v 1.186 2000/05/31 05:04:04 wessels Exp $ +# $Id: cf.data.pre,v 1.187 2000/05/31 07:01:42 hno Exp $ # # # SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -944,6 +944,7 @@ DOC_END NAME: unlinkd_program +IFDEF: USE_UNLINKD TYPE: string DEFAULT: @DEFAULT_UNLINKD@ LOC: Config.Program.unlinkd diff --git a/src/main.cc b/src/main.cc index 600cdc3521..d5604654f7 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.312 2000/05/31 05:02:11 wessels Exp $ + * $Id: main.cc,v 1.313 2000/05/31 07:01:42 hno Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -494,7 +494,9 @@ mainInitialize(void) #endif if (!configured_once) { +#if USE_UNLINKD unlinkdInit(); +#endif urlInitialize(); cachemgrInit(); statInit(); @@ -905,7 +907,9 @@ SquidShutdown(void *unused) #endif releaseServerSockets(); commCloseAllSockets(); +#if USE_UNLINKD unlinkdClose(); +#endif storeDirSync(); /* Flush pending object writes/unlinks */ storeDirWriteCleanLogs(0); PrintRusage(); diff --git a/src/protos.h b/src/protos.h index de62925e4e..e7e213aca3 100644 --- a/src/protos.h +++ b/src/protos.h @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.368 2000/05/31 05:02:11 wessels Exp $ + * $Id: protos.h,v 1.369 2000/05/31 07:01:42 hno Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -1012,9 +1012,11 @@ extern void pumpStart(int, FwdState *, CWCB * callback, void *); extern int pumpMethod(method_t method); extern int pumpRestart(request_t *); +#if USE_UNLINKD extern void unlinkdInit(void); extern void unlinkdClose(void); extern void unlinkdUnlink(const char *); +#endif extern char *url_convert_hex(char *org_url, int allocate); extern char *url_escape(const char *url); diff --git a/src/structs.h b/src/structs.h index 596e4193c9..0963c9952d 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1,6 +1,6 @@ /* - * $Id: structs.h,v 1.337 2000/05/31 05:02:12 wessels Exp $ + * $Id: structs.h,v 1.338 2000/05/31 07:01:42 hno Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -312,7 +312,9 @@ struct _SquidConfig { #if USE_ICMP char *pinger; #endif +#if USE_UNLINKD char *unlinkd; +#endif } Program; #if USE_DNSSERVERS int dnsChildren; -- 2.47.3