[dovecot-cvs] dovecot/src/deliver deliver.c,1.8,1.9

cras at dovecot.org cras at dovecot.org
Wed Sep 28 16:26:06 EEST 2005


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv1249

Modified Files:
	deliver.c 
Log Message:
ioloop needs to be created before setting signals or we crash



Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- deliver.c	25 Sep 2005 11:07:36 -0000	1.8
+++ deliver.c	28 Sep 2005 13:26:03 -0000	1.9
@@ -353,11 +353,12 @@
 	const char *str;
 
 	lib_init();
+	ioloop = io_loop_create(default_pool);
+
 	lib_signals_init();
         lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);
         lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);
         lib_signals_set_handler(SIGPIPE, FALSE, NULL, NULL);
-	ioloop = io_loop_create(default_pool);
 
 	destination = NULL;
 	for (i = 1; i < argc; i++) {



More information about the dovecot-cvs mailing list