dovecot: If auth process dies too early, kill ourself with i_fat...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 11 20:47:49 EET 2008
details: http://hg.dovecot.org/dovecot/rev/d64b898066a9
changeset: 7227:d64b898066a9
user: Timo Sirainen <tss at iki.fi>
date: Mon Feb 11 20:44:00 2008 +0200
description:
If auth process dies too early, kill ourself with i_fatal() so the log
clearly shows why we died.
diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
src/master/auth-process.c | 5 +++--
diffs (15 lines):
diff -r e6693a0ec8e1 -r d64b898066a9 src/master/auth-process.c
--- a/src/master/auth-process.c Mon Feb 11 20:17:00 2008 +0200
+++ b/src/master/auth-process.c Mon Feb 11 20:44:00 2008 +0200
@@ -340,8 +340,9 @@ static void auth_process_destroy(struct
const char *path;
if (!p->initialized && io_loop_is_running(ioloop) && !p->external) {
- i_error("Auth process died too early - shutting down");
- io_loop_stop(ioloop);
+ /* log the process exit and kill ourself */
+ child_processes_deinit();
+ i_fatal("Auth process died too early - shutting down");
}
for (pos = &p->group->processes; *pos != NULL; pos = &(*pos)->next) {
More information about the dovecot-cvs
mailing list