From 9a229891c8f2f5b819cc8feac605fd8a46ae1973 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 May 2017 14:41:45 +0530 Subject: [PATCH] Env var to disable singleinstance checks --- src/calibre/utils/lock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/utils/lock.py b/src/calibre/utils/lock.py index bc86b3c4a6..c0678b1a47 100644 --- a/src/calibre/utils/lock.py +++ b/src/calibre/utils/lock.py @@ -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