[dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.28,1.29
cras at dovecot.org
cras at dovecot.org
Fri Sep 3 23:50:04 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv29421/lib-index
Modified Files:
mail-index-lock.c
Log Message:
lock mprotect fix
Index: mail-index-lock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-lock.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mail-index-lock.c 3 Sep 2004 20:31:22 -0000 1.28
+++ mail-index-lock.c 3 Sep 2004 20:50:02 -0000 1.29
@@ -322,12 +322,13 @@
if (index->shared_lock_count > 0 && !index->fcntl_locks_disable) {
/* leave ourself shared locked. */
- index->lock_type = F_RDLCK;
if (file_try_lock(index->fd, F_RDLCK) <= 0) {
mail_index_file_set_syscall_error(index,
index->copy_lock_path,
"file_try_lock()");
}
+ index->lock_type = F_RDLCK;
+ (void)mail_index_lock_mprotect(index, F_RDLCK);
}
if (index->copy_lock_path != NULL) {
More information about the dovecot-cvs
mailing list