]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
The four-liner below alters fatal() so that fatal errors cause squid
authoradrian <>
Sun, 12 Aug 2001 00:27:20 +0000 (00:27 +0000)
committeradrian <>
Sun, 12 Aug 2001 00:27:20 +0000 (00:27 +0000)
to dump core rather than exit more-or-less-cleanly (of course, the actual
outcome depends on the user's ulimit settings).

Submitted by: Chemolli Francesco <ChemolliF@GruppoCredit.it>

src/tools.cc

index e45464a3bb4e7a50952d745b8638c6ee23210649..91eb9d6834608f6afe639d3d6cffa77cbcc7fbbb 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.207 2001/04/27 16:23:48 hno Exp $
+ * $Id: tools.cc,v 1.208 2001/08/11 18:27:20 adrian Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -354,7 +354,10 @@ fatal(const char *message)
     if (0 == store_dirs_rebuilding)
        storeDirWriteCleanLogs(0);
     fatal_common(message);
-    exit(shutting_down ? 0 : 1);
+    if (shutting_down)
+       exit(0);
+    else
+       abort();
 }
 
 /* printf-style interface for fatal */