changeset 12706:5a3c87124066

dotlocks: Refresh current time after having waited for a lock.
author Timo Sirainen <tss@iki.fi>
date Thu, 20 Jan 2011 23:16:23 +0200
parents 0fc2d00f83df
children b71834419ea3
files src/lib/file-dotlock.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/file-dotlock.c	Thu Jan 20 23:09:44 2011 +0200
+++ b/src/lib/file-dotlock.c	Thu Jan 20 23:16:23 2011 +0200
@@ -506,6 +506,7 @@
 				lock_info.wait_usecs += lock_info.wait_usecs/2;
 			}
 			dotlock_wait(&lock_info);
+			now = time(NULL);
 		}
 
 		ret = check_lock(now, &lock_info);