From: wessels <> Date: Sat, 4 Jan 1997 06:09:24 +0000 (+0000) Subject: add storeWriteCleanLog() call to fatal() X-Git-Tag: SQUID_3_0_PRE1~5240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d399be0ec4d0bb1e17ed21ebd6fc85699d266812;p=thirdparty%2Fsquid.git add storeWriteCleanLog() call to fatal() --- diff --git a/src/tools.cc b/src/tools.cc index f274ad5344..ec8d160c4b 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,6 +1,6 @@ /* - * $Id: tools.cc,v 1.91 1996/12/15 03:22:28 wessels Exp $ + * $Id: tools.cc,v 1.92 1997/01/03 23:09:24 wessels Exp $ * * DEBUG: section 21 Misc Functions * AUTHOR: Harvest Derived @@ -368,6 +368,11 @@ fatal_common(const char *message) void fatal(const char *message) { + /* check for store_rebuilding flag because fatal() is often + * used in early initialization phases, long before we ever + * get to the store log. */ + if (!store_rebuilding) + storeWriteCleanLog(); fatal_common(message); exit(1); }