[dovecot-cvs] dovecot/src/lib ioloop.c,1.42,1.43

tss at dovecot.org tss at dovecot.org
Wed Mar 7 18:08:05 EET 2007


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

Modified Files:
	ioloop.c 
Log Message:
Added a comment about the time moving backwards code.



Index: ioloop.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- ioloop.c	7 Mar 2007 13:40:07 -0000	1.42
+++ ioloop.c	7 Mar 2007 16:08:02 -0000	1.43
@@ -229,6 +229,12 @@
 	if (ioloop_time > ioloop_timeval.tv_sec) {
 		time_t diff = ioloop_time - ioloop_timeval.tv_sec;
 
+		/* Note that this code is here only because this is the easiest
+		   place to check for this. The I/O loop code itself could be
+		   easily fixed to work with time moving backwards, but there's
+		   really no point because there are a lot of other places
+		   which may break in more or less bad ways, such as files'
+		   timestamps moving backwards. */
 		if (diff > IOLOOP_MAX_TIME_BACKWARDS_SLEEP) {
 			i_fatal("Time just moved backwards by %ld seconds. "
 				"This might cause a lot of problems, "



More information about the dovecot-cvs mailing list