[dovecot-cvs] dovecot/src/lib-storage/subscription-file subscription-file.c,1.7,1.8
cras at procontrol.fi
cras at procontrol.fi
Thu Oct 24 00:41:38 EEST 2002
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-custom-flags.c,1.11,1.12 mail-index-open.c,1.11,1.12 mail-index.c,1.62,1.63 mail-modifylog.c,1.31,1.32
- Next message: [dovecot-cvs] dovecot ChangeLog,1.342,1.343
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib-storage/subscription-file
In directory danu:/tmp/cvs-serv24024/lib-storage/subscription-file
Modified Files:
subscription-file.c
Log Message:
file_wait_lock() now takes timeout-parameter so one badly behaving process
won't start creating tons of lock-waiting processes.
Index: subscription-file.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/subscription-file/subscription-file.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- subscription-file.c 21 Oct 2002 15:01:56 -0000 1.7
+++ subscription-file.c 23 Oct 2002 20:41:35 -0000 1.8
@@ -42,7 +42,8 @@
return -1;
}
- if (file_wait_lock(fd, update ? F_WRLCK : F_RDLCK) < 0) {
+ if (file_wait_lock(fd, update ? F_WRLCK : F_RDLCK,
+ DEFAULT_LOCK_TIMEOUT) <= 0) {
subsfile_set_syscall_error(storage, "file_wait_lock()", *path);
(void)close(fd);
return -1;
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-custom-flags.c,1.11,1.12 mail-index-open.c,1.11,1.12 mail-index.c,1.62,1.63 mail-modifylog.c,1.31,1.32
- Next message: [dovecot-cvs] dovecot ChangeLog,1.342,1.343
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list