--------------------- PatchSet 1175 Date: 2005/01/08 12:37:21 Author: serassio Branch: nt Tag: (none) Log: checkRunningPid() may be called when debug_log is already initialized Members: src/main.cc:1.15.2.37->1.15.2.38 Index: squid3/src/main.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/main.cc,v retrieving revision 1.15.2.37 retrieving revision 1.15.2.38 diff -u -r1.15.2.37 -r1.15.2.38 --- squid3/src/main.cc 5 Jan 2005 11:24:59 -0000 1.15.2.37 +++ squid3/src/main.cc 8 Jan 2005 12:37:21 -0000 1.15.2.38 @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.15.2.37 2005/01/05 11:24:59 serassio Exp $ + * $Id: main.cc,v 1.15.2.38 2005/01/08 12:37:21 serassio Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -1283,7 +1283,10 @@ checkRunningPid(void) { pid_t pid; - debug_log = stderr; + + if (!debug_log) + debug_log = stderr; + pid = readPidFile(); if (pid < 2)