]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add storeWriteCleanLog() call to fatal()
authorwessels <>
Sat, 4 Jan 1997 06:09:24 +0000 (06:09 +0000)
committerwessels <>
Sat, 4 Jan 1997 06:09:24 +0000 (06:09 +0000)
src/tools.cc

index f274ad5344d00c84307c9ca878037f90dd0d9b84..ec8d160c4b53b2098f2b740f50cb0fadb5ae9f5a 100644 (file)
@@ -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);
 }