changeset 7227:d64b898066a9 HEAD

If auth process dies too early, kill ourself with i_fatal() so the log clearly shows why we died.
author Timo Sirainen <tss@iki.fi>
date Mon, 11 Feb 2008 20:44:00 +0200
parents e6693a0ec8e1
children 45a083e03fba
files src/master/auth-process.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	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) {