]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #868: pid_filename none does not work
authorhno <>
Sun, 4 Apr 2004 19:48:32 +0000 (19:48 +0000)
committerhno <>
Sun, 4 Apr 2004 19:48:32 +0000 (19:48 +0000)
Contrary to the documentation "pid_filename none" is not accepted and Squid
refuses to start.

src/main.cc

index 42c2bfebd88c07e2d93d6b2504ee0a37e7384f26..55073cb1021e3cc64a2a2f25b4ba264682057bf4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.390 2004/03/01 01:37:34 adrian Exp $
+ * $Id: main.cc,v 1.391 2004/04/04 13:48:32 hno Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -1188,6 +1188,11 @@ sendSignal(void)
 {
     pid_t pid;
     debug_log = stderr;
+
+    if (strcmp(Config.pidFilename, "none") == 0) {
+        debug(0, 1) ("No pid_filename specified. Trusting you know what you are doing.\n");
+    }
+
     pid = readPidFile();
 
     if (pid > 1) {