From: Timo Sirainen Date: Fri, 22 Mar 2013 10:48:21 +0000 (+0200) Subject: dsync: Use fcntl() locking instead of flock(). X-Git-Tag: 2.2.rc4~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44a529ca5ae82d6b11dc3096a51c3748856dcd08;p=thirdparty%2Fdovecot%2Fcore.git dsync: Use fcntl() locking instead of flock(). --- diff --git a/src/doveadm/dsync/dsync-brain.c b/src/doveadm/dsync/dsync-brain.c index 91083cfadd..33fdce3a05 100644 --- a/src/doveadm/dsync/dsync-brain.c +++ b/src/doveadm/dsync/dsync-brain.c @@ -232,7 +232,7 @@ dsync_brain_lock(struct dsync_brain *brain, const char *remote_hostname) } 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;