[dovecot-cvs] dovecot/src/login-common master.c,1.3,1.4

cras at procontrol.fi cras at procontrol.fi
Tue Feb 11 18:53:16 EET 2003


Update of /home/cvs/dovecot/src/login-common
In directory danu:/tmp/cvs-serv2966/login-common

Modified Files:
	master.c 
Log Message:
Die cleanly when master tells us so.



Index: master.c
===================================================================
RCS file: /home/cvs/dovecot/src/login-common/master.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- master.c	8 Feb 2003 14:16:11 -0000	1.3
+++ master.c	11 Feb 2003 16:53:14 -0000	1.4
@@ -70,8 +70,6 @@
 	if (io_master == NULL)
 		return;
 
-	clients_destroy_all();
-
 	if (close(LOGIN_MASTER_SOCKET_FD) < 0)
 		i_fatal("close(master) failed: %m");
 
@@ -80,6 +78,9 @@
 
         main_close_listen();
 	main_unref();
+
+        /* may call this function again through main_unref() */
+	clients_destroy_all();
 }
 
 static void master_input(void *context __attr_unused__)




More information about the dovecot-cvs mailing list