From: hno <> Date: Sun, 4 Apr 2004 19:48:32 +0000 (+0000) Subject: Bug #868: pid_filename none does not work X-Git-Tag: SQUID_3_0_PRE4~1115 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=258ac4d736e609729294309f04f03559859eb2e5;p=thirdparty%2Fsquid.git Bug #868: pid_filename none does not work Contrary to the documentation "pid_filename none" is not accepted and Squid refuses to start. --- diff --git a/src/main.cc b/src/main.cc index 42c2bfebd8..55073cb102 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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) {