]> mj.ucw.cz Git - libucw.git/commitdiff
Another debugging switch: dump core on fatal errors.
authorMartin Mares <mj@ucw.cz>
Mon, 15 Dec 2003 19:20:47 +0000 (19:20 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 15 Dec 2003 19:20:47 +0000 (19:20 +0000)
lib/log.c

index d83a84e4bc43549ac64eb8a7faf196fdb97d6828..e6260b601fe8f34e2772ed1955c0719cac4758e6 100644 (file)
--- a/lib/log.c
+++ b/lib/log.c
@@ -123,7 +123,11 @@ die(byte *msg, ...)
   va_start(args, msg);
   vlog(L_FATAL, msg, args);
   va_end(args);
+#ifdef DEBUG_DIE_BY_ABORT
+  abort();
+#else
   exit(1);
+#endif
 }
 
 #ifdef DEBUG