dovecot: Instead of exit()ing directly if loading plugins fail, ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Sep 9 05:30:29 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/2b6e69bda3ec
changeset: 6363:2b6e69bda3ec
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 09 05:30:20 2007 +0300
description:
Instead of exit()ing directly if loading plugins fail, use i_fatal() so
failure_callback can be called.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/module-dir.c |    2 +-

diffs (12 lines):

diff -r ad46cb956a0a -r 2b6e69bda3ec src/lib/module-dir.c
--- a/src/lib/module-dir.c	Sun Sep 09 05:06:17 2007 +0300
+++ b/src/lib/module-dir.c	Sun Sep 09 05:30:20 2007 +0300
@@ -261,7 +261,7 @@ struct module *module_dir_load(const cha
 			module = module_load(path, stripped_name,
 					     require_init_funcs, version);
 			if (module == NULL && module_names_arr != NULL)
-				exit(FATAL_DEFAULT);
+				i_fatal("Couldn't load required plugins");
 		}
 		t_pop();
 


More information about the dovecot-cvs mailing list