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

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

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

Modified Files:
      Tag: branch_1_0
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
retrieving revision
diff -u -d -r1.35.2.6 -r1.35.2.7
--- ioloop.c	7 Mar 2007 13:40:04 -0000
+++ ioloop.c	7 Mar 2007 16:07:59 -0000
@@ -226,6 +226,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. */
 			i_fatal("Time just moved backwards by %ld seconds. "
 				"This might cause a lot of problems, "

More information about the dovecot-cvs mailing list