[dovecot-cvs] dovecot/src/dict main.c,1.11,1.12

tss at dovecot.org tss at dovecot.org
Fri Dec 15 16:55:33 UTC 2006


Update of /var/lib/cvs/dovecot/src/dict
In directory talvi:/tmp/cvs-serv346/dict

Modified Files:
	main.c 
Log Message:
Added context parameter type safety checks for most callback APIs.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/dict/main.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- main.c	10 Aug 2006 18:46:56 -0000	1.11
+++ main.c	15 Dec 2006 16:55:30 -0000	1.12
@@ -69,8 +69,8 @@
 	lib_signals_init();
         lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);
         lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);
-        lib_signals_ignore(SIGPIPE);
-        lib_signals_set_handler(SIGALRM, FALSE, NULL, NULL);
+        lib_signals_ignore(SIGPIPE, TRUE);
+        lib_signals_ignore(SIGALRM, FALSE);
 
 	/* If master dies, the log fd gets closed and we'll quit */
 	log_io = io_add(STDERR_FILENO, IO_ERROR, log_error_callback, NULL);



More information about the dovecot-cvs mailing list