From: Martin Mares Date: Mon, 15 Dec 2003 19:20:47 +0000 (+0000) Subject: Another debugging switch: dump core on fatal errors. X-Git-Tag: holmes-import~1150 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f6d07cf0d75a7d350171039400d2e30e9c56f602;p=libucw.git Another debugging switch: dump core on fatal errors. --- 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