On Fri, 10 Jan 2003, John Alton Tamplin wrote: > Since rmdir() doesn't delete it, I assume that means there is some entry > in the directory which wasn't deleted. Since you have apparently looked > at this before, what is the cause? Is unlink failing on some file for > some reason, or is it a race condition of a file being created after the > opendir() and before the rmdir() loop?
Well, on linux atleast, rmdir() can fail with EBUSY: EBUSY pathname is the current working directory or root directory of some process. On solaris, you do have to be the process selected on the mailbox to hit the problem. > This has been particularly annoying here during the conversion, because > Mail::IMAPClient uses temporary folders and it deletes them while they > are selected, leaving thousands of empty top-level directories. I shut > the server down and cleaned them up, but that isn't something I would > like to do often. I actually suspect its easier to fix Mail::IMAPClient than to get a totally correct cyrus. The bug for this issue is here: http://bugzilla.andrew.cmu.edu/show_bug.cgi?id=1268 -Rob -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456 Research Systems Programmer * /usr/contributed Gatekeeper