1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

'import fcntl' failing means we need to lie about no other instances.

This commit is contained in:
Athanasius 2021-01-22 14:15:32 +00:00
parent 11b1c436a7
commit b0f52b3d55

View File

@ -177,6 +177,7 @@ if __name__ == '__main__': # noqa: C901
except ImportError:
logger.warning("Not on win32 and we have no fcntl, can't use a file lock!"
"Allowing multiple instances!")
return True # Lie about there being no other instances
try:
fcntl.flock(journal_dir_lockfile, fcntl.LOCK_EX | fcntl.LOCK_NB)