dovecot-2.2: dsync: Use fcntl() locking instead of flock().

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 22 12:48:26 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/b436c1f6bd06
changeset: 16089:b436c1f6bd06
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 22 12:48:21 2013 +0200
description:
dsync: Use fcntl() locking instead of flock().

diffstat:

 src/doveadm/dsync/dsync-brain.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b839613c1573 -r b436c1f6bd06 src/doveadm/dsync/dsync-brain.c
--- a/src/doveadm/dsync/dsync-brain.c	Fri Mar 22 11:17:14 2013 +0200
+++ b/src/doveadm/dsync/dsync-brain.c	Fri Mar 22 12:48:21 2013 +0200
@@ -232,7 +232,7 @@
 		}
 
 		if (file_wait_lock(brain->lock_fd, brain->lock_path, F_WRLCK,
-				   FILE_LOCK_METHOD_FLOCK, brain->lock_timeout,
+				   FILE_LOCK_METHOD_FCNTL, brain->lock_timeout,
 				   &brain->lock) <= 0) {
 			i_error("Couldn't lock %s: %m", brain->lock_path);
 			break;


More information about the dovecot-cvs mailing list