]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Log raw backtrace when dying with "out of memory" error
authorTimo Sirainen <tss@iki.fi>
Tue, 11 Mar 2008 15:25:29 +0000 (17:25 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 11 Mar 2008 15:25:29 +0000 (17:25 +0200)
--HG--
branch : HEAD

src/lib/failures.c

index 0ff0679c40b15be7a8737a9568a77cbe1b8a18c5..f8bc6881d5e3f4598fab35020eca4b7611c6b26c 100644 (file)
@@ -147,7 +147,7 @@ void default_fatal_handler(enum log_type type, int status,
                            args) < 0 && status == FATAL_DEFAULT)
                status = FATAL_LOGWRITE;
 
-       if (type == LOG_TYPE_PANIC) {
+       if (type == LOG_TYPE_PANIC || status == FATAL_OUTOFMEM) {
                if (backtrace_get(&backtrace) == 0)
                        i_error("Raw backtrace: %s", backtrace);
        }