[Dovecot] Multiple instances of .customflags staying open

Timo Sirainen tss at iki.fi
Mon Sep 22 17:28:48 EEST 2003


On Mon, 2003-09-22 at 16:13, Ron wrote:
> I've just recently noticed a serious problem with my system. After about
> an hour or so I get errors in /var/log/maillog such as this;
> Sep 21 06:40:16 the-system imap(ray): opendir() failed with file \
> \/home/ray/Maildir//new: Too many open files
> 
> I investigated with 'lsof' and found that many copies of '.customflags'
> were open for each and every folder. ie; Each folder's '.customflags'
> file was open 15 times!

Could it be that your .customflags files are not writable to users?
That's the only code path that I can see it leaking file descriptors for
.customflags. Attached patch should also fix it.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: leak.diff
Type: text/x-patch
Size: 1060 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20030922/73030e7a/attachment-0001.bin>


More information about the dovecot mailing list