/offlineimap/head: changeset 352

Added check to make sure that two processes do not run in the same
directory at once.
This commit is contained in:
jgoerzen
2003-01-30 02:19:53 +01:00
parent 897e93700d
commit 7b9b102e5e
3 changed files with 24 additions and 1 deletions

View File

@@ -101,6 +101,9 @@ class UIBase:
def invaliddebug(s, debugtype):
s.warn("Invalid debug type: %s" % debugtype)
def locked(s):
s.warn("Another OfflineIMAP is running with the same metadatadir; exiting.")
def getnicename(s, object):
prelimname = str(object.__class__).split('.')[-1]
# Strip off extra stuff.