[dovecot-cvs] dovecot/src/login-common master.c,1.9,1.10

cras at dovecot.org cras at dovecot.org
Fri Jul 9 22:59:04 EEST 2004


Update of /home/cvs/dovecot/src/login-common
In directory talvi:/tmp/cvs-serv7425/login-common

Modified Files:
	master.c 
Log Message:
Added --exec-mail option to master. It can be used to parse Dovecot config
file and exec() imap/pop3 process directly. Moved --inetd option into
environment as it's only for internal use.



Index: master.c
===================================================================
RCS file: /home/cvs/dovecot/src/login-common/master.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- master.c	31 May 2004 18:04:47 -0000	1.9
+++ master.c	9 Jul 2004 19:59:02 -0000	1.10
@@ -104,7 +104,7 @@
 
 static void master_exec(int fd)
 {
-	char *argv[] = { "dovecot", "--inetd", NULL };
+	char *argv[] = { "dovecot", NULL };
 
 	switch (fork()) {
 	case -1:
@@ -117,6 +117,7 @@
 		if (setsid() < 0)
 			i_fatal("setsid() failed: %m");
 
+		env_put("DOVECOT_INETD=1");
 		execv(SBINDIR"/dovecot", argv);
 		i_fatal_status(FATAL_EXEC, "execv(%s) failed: %m",
 			       SBINDIR"/dovecot");



More information about the dovecot-cvs mailing list