Subject: Can not remove mbx folders

From: Eduardo Chappa <[email-masked]>
Date: Tue, 23 Nov 2004 12:08:05 -0800 (PST)

Hello,

   While trying to remove a mbx folder in my linux account (Redhat 9.0) I 
get the following error

  [Folder mail/xyz is in use by another process]

The folder is closed, nobody else is using it. I changed the code that 
produces that error to:

   if (errno == ENOLCK)
      sprintf(tmp,"Failed to lock: %s", strerr(errno));
   else
       sprintf (tmp,"Mailbox %.80s is in use by another process",old);

When I repeat the operation I get the message:

      Failed to lock: No locks available

according to the flock manual:

  ENOLCK The kernel ran out of memory for allocating lock records.

Is there anything that I can do to remove a mbx folder from within Pine?

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/
-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Mark Crispin <[email-masked]>
Date: Tue, 23 Nov 2004 12:16:49 -0800 (Pacific Standard Time)

If you are getting ENOLCK errors (which did not happen under earlier 
versions of Linux), then something is wrong with the operating system and 
that should be fixed.

The entire purpose of locking as part of delete is to ensure that an open 
mailbox is not deleted.  It is not safe to assume that an ENOLCK error 
means that the mailbox is not locked by another process.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.