[dovecot-cvs] dovecot/src/master main.c,1.81,1.82

cras at dovecot.org cras at dovecot.org
Fri Jun 16 12:43:16 EEST 2006


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv16466

Modified Files:
	main.c 
Log Message:
If running from inetd, don't try to open/close listener sockets when
receiving SIGHUP.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/main.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- main.c	8 Jun 2006 18:52:40 -0000	1.81
+++ main.c	16 Jun 2006 09:43:14 -0000	1.82
@@ -140,8 +140,10 @@
 	if (!master_settings_read(configfile, FALSE))
 		i_warning("Invalid configuration, keeping old one");
 	else {
-		listen_fds_close(old_set);
-		listen_fds_open(TRUE);
+		if (!IS_INETD()) {
+			listen_fds_close(old_set);
+			listen_fds_open(TRUE);
+		}
                 set_logfile(settings_root->defaults);
 	}
 }



More information about the dovecot-cvs mailing list