[dovecot-cvs] dovecot/src/auth main.c,1.47,1.48

cras at dovecot.org cras at dovecot.org
Fri Oct 7 13:22:50 EEST 2005


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

Modified Files:
	main.c 
Log Message:
Don't crash with SIGHUP/SIGUSR2 if auth_cache isn't used



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/main.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- main.c	25 Sep 2005 11:07:32 -0000	1.47
+++ main.c	7 Oct 2005 10:22:47 -0000	1.48
@@ -205,6 +205,10 @@
         lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);
         lib_signals_set_handler(SIGPIPE, FALSE, NULL, NULL);
 
+	/* If auth caches aren't used, just ignore these signals */
+	lib_signals_set_handler(SIGHUP, FALSE, NULL, NULL);
+	lib_signals_set_handler(SIGUSR2, FALSE, NULL, NULL);
+
 	mech_init();
 	auth_init(auth);
 	auth_request_handler_init();



More information about the dovecot-cvs mailing list