From f6d07cf0d75a7d350171039400d2e30e9c56f602 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 15 Dec 2003 19:20:47 +0000 Subject: [PATCH] Another debugging switch: dump core on fatal errors. --- lib/log.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/log.c b/lib/log.c index d83a84e4..e6260b60 100644 --- 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 -- 2.39.2