dovecot-1.0: Instead of exit()ing directly if loading plugins fa...

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


details:   http://hg.dovecot.org/dovecot-1.0/rev/cb3679cd91a1
changeset: 5396:cb3679cd91a1
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 09 05:29:41 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 a3f2f00cbd7c -r cb3679cd91a1 src/lib/module-dir.c
--- a/src/lib/module-dir.c	Sun Sep 09 05:04:39 2007 +0300
+++ b/src/lib/module-dir.c	Sun Sep 09 05:29:41 2007 +0300
@@ -262,7 +262,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