From: wessels <> Date: Wed, 17 Apr 1996 23:14:43 +0000 (+0000) Subject: dont close stderr X-Git-Tag: SQUID_3_0_PRE1~6128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2cc1af5fb9c62cb51931da20413a90f0b36ed98;p=thirdparty%2Fsquid.git dont close stderr --- diff --git a/src/debug.cc b/src/debug.cc index 36025d8695..ca96c4c7a3 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -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) {