[dovecot-cvs] dovecot/src/pop3 main.c,1.9,1.10

cras at procontrol.fi cras at procontrol.fi
Mon May 10 19:05:13 EEST 2004


Update of /home/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv10665/pop3

Modified Files:
	main.c 
Log Message:
Write all logging through master process. Fixes problems with log rotation,
chrooting, etc. Master process also allows max. 10 log messages per second
per child process, it then begins throttling them (eventually making the
child process start blocking on stderr).



Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3/main.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- main.c	27 Jul 2003 03:12:14 -0000	1.9
+++ main.c	10 May 2004 16:05:10 -0000	1.10
@@ -33,6 +33,11 @@
 {
 	const char *user;
 
+	if (getenv("LOG_TO_MASTER") != NULL) {
+		i_set_failure_internal();
+		return;
+	}
+
 	user = getenv("USER");
 	if (user == NULL) user = "??";
 	if (strlen(user) >= sizeof(log_prefix)-6) {



More information about the dovecot-cvs mailing list