[dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.42,1.43
cras at dovecot.org
cras at dovecot.org
Fri Sep 30 21:25:34 EEST 2005
- Previous message: [dovecot-cvs] dovecot/src/deliver deliver.c,1.9,1.10
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-cache-compress.c, 1.36,
1.37 mail-cache-fields.c, 1.17, 1.18 mail-cache-private.h,
1.25, 1.26 mail-cache-sync-update.c, 1.8,
1.9 mail-cache-transaction.c, 1.44, 1.45 mail-cache.c, 1.72, 1.73
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv6633/lib-index
Modified Files:
mail-index-lock.c
Log Message:
Don't leak alarm() with in-memory indexes
Index: mail-index-lock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-lock.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- mail-index-lock.c 27 Aug 2005 10:31:45 -0000 1.42
+++ mail-index-lock.c 30 Sep 2005 18:25:30 -0000 1.43
@@ -38,12 +38,12 @@
{
int ret;
- if (timeout_secs != 0)
- alarm(MAIL_INDEX_LOCK_WAIT_TIME);
-
if (MAIL_INDEX_IS_IN_MEMORY(index))
return 1;
+ if (timeout_secs != 0)
+ alarm(MAIL_INDEX_LOCK_WAIT_TIME);
+
switch (index->lock_method) {
case MAIL_INDEX_LOCK_FCNTL: {
#ifndef HAVE_FCNTL
- Previous message: [dovecot-cvs] dovecot/src/deliver deliver.c,1.9,1.10
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-cache-compress.c, 1.36,
1.37 mail-cache-fields.c, 1.17, 1.18 mail-cache-private.h,
1.25, 1.26 mail-cache-sync-update.c, 1.8,
1.9 mail-cache-transaction.c, 1.44, 1.45 mail-cache.c, 1.72, 1.73
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list