]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
dont close stderr
authorwessels <>
Wed, 17 Apr 1996 23:14:43 +0000 (23:14 +0000)
committerwessels <>
Wed, 17 Apr 1996 23:14:43 +0000 (23:14 +0000)
src/debug.cc

index 36025d869552323930a97078dc2f7a657af847b7..ca96c4c7a39e77ec9eb0070959b576df82d6f803 100644 (file)
@@ -1,5 +1,5 @@
 
-/* $Id: debug.cc,v 1.16 1996/04/16 05:05:19 wessels Exp $ */
+/* $Id: debug.cc,v 1.17 1996/04/17 17:14:43 wessels Exp $ */
 
 #include "squid.h"
 
@@ -112,7 +112,7 @@ static void debugOpenLog(logfile)
     if (debug_log_file)
        xfree(debug_log_file);
     debug_log_file = xstrdup(logfile); /* keep a static copy */
-    if (debug_log)
+    if (debug_log && debug_log != stderr)
        fclose(debug_log);
     debug_log = fopen(logfile, "a+");
     if (!debug_log) {