dovecot-1.1: Log raw backtrace when dying with "out of memory" e...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Mar 11 17:25:33 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/ed147ad1e03e
changeset: 7411:ed147ad1e03e
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 11 17:25:29 2008 +0200
description:
Log raw backtrace when dying with "out of memory" error
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/failures.c | 2 +-
diffs (12 lines):
diff -r b3c900eb7e83 -r ed147ad1e03e src/lib/failures.c
--- a/src/lib/failures.c Tue Mar 11 15:08:57 2008 +0200
+++ b/src/lib/failures.c Tue Mar 11 17:25:29 2008 +0200
@@ -147,7 +147,7 @@ void default_fatal_handler(enum log_type
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);
}
More information about the dovecot-cvs
mailing list