[dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.4,1.5

cras at procontrol.fi cras at procontrol.fi
Wed Apr 28 05:01:57 EEST 2004


Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv7579/src/lib-index

Modified Files:
	mail-index-lock.c 
Log Message:
whops, was unfinished



Index: mail-index-lock.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-lock.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mail-index-lock.c	28 Apr 2004 02:00:39 -0000	1.4
+++ mail-index-lock.c	28 Apr 2004 02:01:54 -0000	1.5
@@ -108,7 +108,9 @@
 		   locks then, though */
 		if (lock_type == F_WRLCK)
 			return 0;
-	} else {
+		if (mail_index_lock_mprotect(index, lock_type) < 0)
+			return -1;
+		return 1;
 	}
 
 	if (lock_type == F_WRLCK && index->lock_type == F_RDLCK) {



More information about the dovecot-cvs mailing list