[PATCH 2/2] Re: Temporarily delete old-style lock files

Nicolas Sebrecht nicolas.s-dev at laposte.net
Mon Aug 15 10:01:01 UTC 2011


On Mon, Aug 15, 2011 at 10:04:27AM +0200, Sebastian Spaeth wrote:
> On Sun, 14 Aug 2011 17:06:27 +0200, Nicolas Sebrecht <nicolas.s-dev at laposte.net> wrote:
> > The question is: what would happen if a user has/wants two versions of
> > offlineimap installed (think about cron + interactive) and he launches
> > an instance for both versions?
> 
> New versions would happily overlap running with the old version and but
> would probably fail to delete the lock file of the old version while it
> keeps it open.

Why new versions should have to unlock the old locks? If old versions
are bad at unlocking, we should fix that.

>                But we have that problem anyway, even without this
> patch. Newer versions would always run at the same time as old
> versions. We could improve our compatability for testing if we can
> delete an old-style lock file when we try to get a lock in the new
> system.
> 
> Would that be worth the trouble? If yes, I can whip up the patch.

I think some people might have multiple versions of OfflineIMAP
installed in different paths. For example, one launched by cron and
another for immediate needs launched by the user.

What we should do is not launch two instances of OfflineIMAP if one old
version is running.

-- 
Nicolas Sebrecht



More information about the OfflineIMAP-project mailing list