From 258ac4d736e609729294309f04f03559859eb2e5 Mon Sep 17 00:00:00 2001 From: hno <> Date: Sun, 4 Apr 2004 19:48:32 +0000 Subject: [PATCH] Bug #868: pid_filename none does not work Contrary to the documentation "pid_filename none" is not accepted and Squid refuses to start. --- src/main.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.47.2