After crash, it leaves lock files. Must reboot to run again.

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Aug 30 19:53:02 UTC 2011


On Tue, 30 Aug 2011 11:20:58 -0700 (PDT), chris coleman wrote:
> After a crash (steps to reproduce: disconnect the internet during the middle of a run), it leaves lock files on the disk. 

Current OfflineImap always leaves the lock file existing, it just
request an exclusive lock via fcntl when it wants to take it. This way
the lock is going away when the process has gone away even if the lock
file is still there.

I have still the patch series to introduce per-account locking (and it
will clean up locks when it doesn't crash), but the locking method will
be the same: taking an exclusive lock.

If it doesn't work after a "crash" I would be very surprised (I believe
you though :-)). The locking code hasn't changed in ages.

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20110830/26a8d96b/attachment.pgp>


More information about the OfflineIMAP-project mailing list