From d98a5ac338574445be9004ed26d2adeb69955590 Mon Sep 17 00:00:00 2001 From: 0scar Date: Wed, 22 Mar 2023 12:13:23 +0100 Subject: Update latexrun --- .local/bin/latexrun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/latexrun') 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) -- cgit v1.3