diff options
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/latexrun | 2 |
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) |
