]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If login process core dumps, suggest using -D parameter.
authorTimo Sirainen <tss@iki.fi>
Fri, 13 Mar 2009 19:12:23 +0000 (15:12 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 13 Mar 2009 19:12:23 +0000 (15:12 -0400)
--HG--
branch : HEAD

src/master/child-process.c

index 5814cb437a403094cb7996e1e386cbb1ea62bc81..2202a9f6a7be9d68e05712649c34a33dac5801f0 100644 (file)
@@ -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)