]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
checkRunningPid() may be called when debug_log is already initialized
authorserassio <>
Sat, 8 Jan 2005 17:09:31 +0000 (17:09 +0000)
committerserassio <>
Sat, 8 Jan 2005 17:09:31 +0000 (17:09 +0000)
src/main.cc

index 5e52cb93e238e236ac75568b4d32481440d841cd..c8a85159536127ef8e1e648dbee2933b08bf2f88 100644 (file)
@@ -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)