summaryrefslogtreecommitdiff
path: root/.local/bin/latexrun
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2023-03-22 11:13:23 +0000
committer0scar <qgt268@alumni.ku.dk>2023-03-22 11:13:23 +0000
commitd98a5ac338574445be9004ed26d2adeb69955590 (patch)
treeb0dc179af0fb13ff8de82119451217c3f80d6d53 /.local/bin/latexrun
parentd9a19b14ec4f40986eec35c1e9448d1e47e71b5f (diff)
Update latexrun
Diffstat (limited to '.local/bin/latexrun')
-rwxr-xr-x.local/bin/latexrun2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/latexrun b/.local/bin/latexrun
index 72f741d..b669d9f 100755
--- a/.local/bin/latexrun
+++ b/.local/bin/latexrun
@@ -252,7 +252,7 @@ class DB:
# until the process exits.
lockpath = self.__filename + '.lock'
if fcntl is not None:
- lockfd = os.open(lockpath, os.O_CREAT|os.O_WRONLY, 0o666)
+ lockfd = os.open(lockpath, os.O_CREAT|os.O_WRONLY|os.O_CLOEXEC, 0o666)
# Note that this is actually an fcntl lock, not a lockf
# lock. Don't be fooled.
fcntl.lockf(lockfd, fcntl.LOCK_EX, 1)