Env var to disable singleinstance checks

This commit is contained in:
Kovid Goyal 2017-05-05 14:41:45 +05:30
parent ea91d66152
commit 9a229891c8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -192,6 +192,8 @@ else:
def singleinstance(name):
' Ensure that only a single process holding exists with the specified mutex key '
if b'CALIBRE_NO_SI_DANGER_DANGER' in os.environ:
return True
release_mutex = create_single_instance_mutex(name)
if release_mutex is None:
return False