Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
wmanley committed Nov 12, 2023
1 parent 9fdae8e commit 7bc7bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stbt_rig.py
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ def flock(filename):
except (OSError, IOError) as e:
if failed_attempting_lock:
try:
with open("filename", "rb") as f2:
with open(filename, "rb") as f2:
pid = f2.read(20)
except Exception: # pylint:disable=broad-except
logger.warning(
Expand All @@ -1707,7 +1707,7 @@ def flock(filename):
def file_lock(fileno):
# Arbitrarily chosen position in the file, sufficiently far from the
# beginning that it won't overlap with the pid:
LOCK_POS = 20
LOCK_POS = 4096

import msvcrt # pylint: disable=import-error
# Seek to specific position and lock 1 byte. We don't want to lock the
Expand Down

0 comments on commit 7bc7bef

Please sign in to comment.