[dovecot-cvs] dovecot/src/auth passdb-checkpassword.c, 1.22, 1.23 passdb-pam.c, 1.41, 1.42

cras at dovecot.org cras at dovecot.org
Fri Aug 11 18:09:41 EEST 2006


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv26002

Modified Files:
	passdb-checkpassword.c passdb-pam.c 
Log Message:
Set SIGCHLD handler in init, not in preinit when lib_signals_init() hasn't
yet been called.



Index: passdb-checkpassword.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-checkpassword.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- passdb-checkpassword.c	10 Aug 2006 21:59:40 -0000	1.22
+++ passdb-checkpassword.c	11 Aug 2006 15:09:38 -0000	1.23
@@ -393,6 +393,12 @@
 	return &module->module;
 }
 
+static void checkpassword_init(struct passdb_module *_module __attr_unused__,
+			       const char *args __attr_unused__)
+{
+	lib_signals_set_handler(SIGCHLD, TRUE, sigchld_handler, NULL);
+}
+
 static void checkpassword_deinit(struct passdb_module *_module)
 {
 	struct checkpassword_passdb_module *module =
@@ -415,7 +421,7 @@
 	"checkpassword",
 
 	checkpassword_preinit,
-	NULL,
+	checkpassword_init,
 	checkpassword_deinit,
 
 	checkpassword_verify_plain,

Index: passdb-pam.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-pam.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- passdb-pam.c	10 Aug 2006 21:59:40 -0000	1.41
+++ passdb-pam.c	11 Aug 2006 15:09:38 -0000	1.42
@@ -471,6 +471,12 @@
 	return &module->module;
 }
 
+static void pam_init(struct passdb_module *_module __attr_unused__,
+		     const char *args __attr_unused__)
+{
+	lib_signals_set_handler(SIGCHLD, TRUE, sigchld_handler, NULL);
+}
+
 static void pam_deinit(struct passdb_module *_module __attr_unused__)
 {
 	lib_signals_unset_handler(SIGCHLD, sigchld_handler, NULL);
@@ -480,7 +486,7 @@
 	"pam",
 
 	pam_preinit,
-	NULL,
+	pam_init,
 	pam_deinit,
 
 	pam_verify_plain,



More information about the dovecot-cvs mailing list