mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-28 01:24:48 +01:00
Env var to disable singleinstance checks
This commit is contained in:
parent
ea91d66152
commit
9a229891c8
1 changed files with 2 additions and 0 deletions
|
|
@ -192,6 +192,8 @@ def create_single_instance_mutex(name, per_user=True):
|
|||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue