]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: Add reconfigure action to cachemgr.
authorserassio <>
Sun, 2 Mar 2008 22:54:48 +0000 (22:54 +0000)
committerserassio <>
Sun, 2 Mar 2008 22:54:48 +0000 (22:54 +0000)
src/cache_manager.cc
src/tests/testCacheManager.cc
src/tests/testEvent.cc
src/tests/testEventLoop.cc
src/tests/testHttpRequest.cc
src/tests/testURL.cc
src/tests/test_http_range.cc
src/ufsdump.cc

index f8b07f7d45d1d4e528e61264534c50c829f9fe0e..a5e5807a30ddbd81198d5cb04c1f82d7e770a9aa 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_manager.cc,v 1.48 2007/10/31 04:52:16 amosjeffries Exp $
+ * $Id: cache_manager.cc,v 1.48.4.1 2008/03/02 15:54:48 serassio Exp $
  *
  * DEBUG: section 16    Cache Manager Objects
  * AUTHOR: Duane Wessels
@@ -63,6 +63,7 @@ static void cachemgrStateFree(cachemgrStateData * mgr);
 static char *cachemgrPasswdGet(cachemgr_passwd *, const char *);
 static const char *cachemgrActionProtection(const CacheManagerAction * at);
 static OBJH cachemgrShutdown;
+static OBJH cachemgrReconfigure;
 static OBJH cachemgrMenu;
 static OBJH cachemgrOfflineToggle;
 
@@ -74,6 +75,9 @@ CacheManager::CacheManager()
     registerAction("shutdown",
                    "Shut Down the Squid Process",
                    cachemgrShutdown, 1, 1);
+    registerAction("reconfigure",
+                   "Reconfigure the Squid Process",
+                   cachemgrReconfigure, 1, 1);
     registerAction("offline_toggle",
                    "Toggle offline_mode setting",
                    cachemgrOfflineToggle, 1, 1);
@@ -348,6 +352,14 @@ cachemgrShutdown(StoreEntry * entryunused)
     shut_down(0);
 }
 
+static void
+cachemgrReconfigure(StoreEntry * sentry)
+{
+    debug(16, 0) ("Reconfigure by command.\n");
+    reconfigure(SIGHUP);
+    storeAppendPrintf(sentry, "Reconfiguring Squid Process ....");
+}
+
 static void
 cachemgrOfflineToggle(StoreEntry * sentry)
 {
index 02b165a61835a60810256c1f4341a6b98e932b9c..a66a54f564c2157c40dc242393fafa7a6e95a9c4 100644 (file)
@@ -13,6 +13,10 @@ void
 shut_down(int)
 {}
 
+void
+reconfigure(int)
+{}
+
 /* end stubs */
 
 /* init memory pools */
index d91db9fb32baa7f2d63588c5facb2ddebc6fb15e..6e880de1e2b21f81c904003aa71ef1da6fda651f 100644 (file)
@@ -15,6 +15,10 @@ void
 shut_down(int)
 {}
 
+void
+reconfigure(int)
+{}
+
 /* end stubs */
 
 /* init legacy static-initialized modules */
index edbfd81c5dba856170b909ddd27b57c6d59eac59..22baf84040636b728938862a6ba10dc6f627ed02 100644 (file)
@@ -16,6 +16,10 @@ void
 shut_down(int)
 {}
 
+void
+reconfigure(int)
+{}
+
 /* end stubs */
 
 /* init legacy static-initialized modules */
index d0840cca6afe809cef4a6da5eec7b684d06a9e7f..ada78952ee7087f51d2fd68f2449d473ee64a559 100644 (file)
@@ -13,6 +13,10 @@ void
 shut_down(int)
 {}
 
+void
+reconfigure(int)
+{}
+
 /* end stubs */
 
 /* init memory pools */
index 031161bdefb3c88347ec498d859d2d84754f3266..839df9103a9a068beee4be9e012ab8dab3d73a17 100644 (file)
@@ -14,6 +14,10 @@ void
 shut_down(int)
 {}
 
+void
+reconfigure(int)
+{}
+
 /* end stubs */
 
 /* init memory pools */
index 2f52f12ae8b01bde4073fe1c6dccfb330a1fcedf..fb9348cd8d02a53306e0c35c0360ee0e912abd4a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: test_http_range.cc,v 1.3 2007/05/29 13:31:48 amosjeffries Exp $
+ * $Id: test_http_range.cc,v 1.3.6.1 2008/03/02 15:54:48 serassio Exp $
  *
  * DEBUG: section 64    HTTP Range Header
  * AUTHOR: Alex Rousskov
@@ -45,6 +45,10 @@ void
 shut_down(int)
 {}
 
+void
+reconfigure(int)
+{}
+
 SQUIDCEXTERN void httpHeaderPutStr(HttpHeader * hdr, http_hdr_type type, const char *str)
 {
     fatal ("dummy function\n");
index 9e0d0abcd6ddad32f02f433993d0ac46e556ecf8..9f5de947a459f997d80bf86ce506504f43eda192 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ufsdump.cc,v 1.11 2007/11/15 16:47:35 wessels Exp $
+ * $Id: ufsdump.cc,v 1.11.4.1 2008/03/02 15:54:48 serassio Exp $
  *
  * DEBUG: section 0     UFS Store Dump
  * AUTHOR: Robert Collins
 void shut_down(int)
 {}
 
+void
+reconfigure(int)
+{}
+
 #if WHENITMINIMAL
 void
 eventAdd(const char *name, EVH * func, void *arg, double when, int, bool cbdata)