From: kostas <> Date: Fri, 27 Feb 1998 14:28:57 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: SQUID_3_0_PRE1~3957 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf05976d7292243b28c10d3ec1fbcc719f1a268;p=thirdparty%2Fsquid.git *** empty log message *** --- diff --git a/src/tools.cc b/src/tools.cc index c94cbc4f90..69a4134ae9 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,6 +1,6 @@ /* - * $Id: tools.cc,v 1.148 1998/02/27 07:24:57 kostas Exp $ + * $Id: tools.cc,v 1.149 1998/02/27 07:28:57 kostas Exp $ * * DEBUG: section 21 Misc Functions * AUTHOR: Harvest Derived @@ -340,17 +340,19 @@ sigusr2_handle(int sig) static int state = 0; /* no debug() here; bad things happen if the signal is delivered during _db_print() */ if (state == 0) { +#ifndef MEM_GEN_TRACE _db_init(Config.Log.log, "ALL,10"); - state = 1; -#if MEM_GEN_TRACE +#else log_trace_done(); #endif + state = 1; } else { +#ifndef MEM_GEN_TRACE _db_init(Config.Log.log, Config.debugOptions); - state = 0; -#if MEM_GEN_TRACE +#else log_trace_init("/tmp/squid.alloc"); #endif + state = 0; } #if !HAVE_SIGACTION signal(sig, sigusr2_handle); /* reinstall */