22 Sep
2003
22 Sep
'03
5:28 p.m.
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 filesI 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.