From: serassio <> Date: Sat, 8 Jan 2005 17:09:31 +0000 (+0000) Subject: checkRunningPid() may be called when debug_log is already initialized X-Git-Tag: SQUID_3_0_PRE4~910 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0077312cf30672afada3156b58f5e81dbc43926;p=thirdparty%2Fsquid.git checkRunningPid() may be called when debug_log is already initialized --- diff --git a/src/main.cc b/src/main.cc index 5e52cb93e2..c8a8515953 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.402 2005/01/03 16:08:26 robertc Exp $ + * $Id: main.cc,v 1.403 2005/01/08 10:09:31 serassio Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -1283,7 +1283,10 @@ static int checkRunningPid(void) { pid_t pid; - debug_log = stderr; + + if (!debug_log) + debug_log = stderr; + pid = readPidFile(); if (pid < 2)