[dovecot-cvs] dovecot/src/lib failures.c,1.24,1.25

cras at dovecot.org cras at dovecot.org
Fri Jul 9 22:08:38 EEST 2004


Update of /home/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv6120/lib

Modified Files:
	failures.c 
Log Message:
When i_set_failure_file() is called, make sure the handlers are reset back
to defaults.



Index: failures.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/failures.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- failures.c	10 May 2004 16:05:10 -0000	1.24
+++ failures.c	9 Jul 2004 19:08:35 -0000	1.25
@@ -342,6 +342,11 @@
 	if (log_info_fd != NULL && log_info_fd != stderr)
 		(void)fclose(log_info_fd);
 	log_info_fd = log_fd;
+
+	i_set_panic_handler(NULL);
+	i_set_fatal_handler(NULL);
+	i_set_error_handler(NULL);
+	i_set_warning_handler(NULL);
 }
 
 static int internal_handler(char log_type, const char *format, va_list args)



More information about the dovecot-cvs mailing list