From e7355058f65ad446550226ddbcdc7a4ddcae9ace Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 13 Mar 2009 15:12:23 -0400 Subject: [PATCH] If login process core dumps, suggest using -D parameter. --HG-- branch : HEAD --- src/master/child-process.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/master/child-process.c b/src/master/child-process.c index 5814cb437a..2202a9f6a7 100644 --- a/src/master/child-process.c +++ b/src/master/child-process.c @@ -142,8 +142,10 @@ log_coredump(string_t *str, enum process_type process_type, int status) return; /* let's try to figure out why we didn't get a core dump */ - if (process_type != PROCESS_TYPE_IMAP && - process_type != PROCESS_TYPE_POP3) + if (process_type == PROCESS_TYPE_LOGIN) + str_append(str, " (core not dumped - add -D to login_executable)"); + else if (process_type != PROCESS_TYPE_IMAP && + process_type != PROCESS_TYPE_POP3) str_append(str, " (core not dumped)"); #ifndef HAVE_PR_SET_DUMPABLE else if (!settings_root->defaults->mail_drop_priv_before_exec) -- 2.47.3