From: Mark Wooding Date: Sun, 28 May 2017 18:03:08 +0000 (+0100) Subject: rhodes: Open lock files with the right permissions for exclusive locking. X-Git-Url: https://git.distorted.org.uk/~mdw/rhodes/commitdiff_plain/463f549cba371a58747531f6db8830b039160219?hp=b93ad432a05ead513aae2691dc45885202bb54ed rhodes: Open lock files with the right permissions for exclusive locking. --- diff --git a/rhodes b/rhodes index 8152999..90876f1 100755 --- a/rhodes +++ b/rhodes @@ -286,7 +286,7 @@ def maybe_cleanup_worker(dir, db, pid): def maybe_kill_worker(dir, pid): f = OS.path.join(dir, 'lk.%d' % pid) - try: fd = OS.open(f, OS.O_RDONLY) + try: fd = OS.open(f, OS.O_RDWR) except OSError, err: if err.errno != E.ENOENT: raise ExpectedError, 'open lockfile: %s' % err return