chiark
/
gitweb
/
~mdw
/
rhodes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b93ad43
)
rhodes: Open lock files with the right permissions for exclusive locking.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 28 May 2017 18:03:08 +0000
(19:03 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 19 Jun 2017 09:29:20 +0000
(10:29 +0100)
rhodes
patch
|
blob
|
blame
|
history
diff --git
a/rhodes
b/rhodes
index 81529997dc9356c955c36aa33f8ec1914930db9f..90876f1d3c5c35ec431e08f495281d4d6a47645e 100755
(executable)
--- 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_RD
ONLY
)
+ try: fd = OS.open(f, OS.O_RD
WR
)
except OSError, err:
if err.errno != E.ENOENT: raise ExpectedError, 'open lockfile: %s' % err
return