projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
160568c
)
doh!
author
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 21 Feb 2007 09:12:20 +0000
(09:12 +0000)
committer
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 21 Feb 2007 09:12:20 +0000
(09:12 +0000)
IkiWiki.pm
patch
|
blob
|
history
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index c8d959edd11c4edf31b46fab0935e29bd0ff261e..dcb68bca6d525578fee12e7bdd25d5f92c1e51ef 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-621,11
+621,11
@@
sub unlockwiki () { #{{{
sub commit_hook_enabled () { #{{{
open(COMMITLOCK, "+>$config{wikistatedir}/commitlock") ||
error ("cannot write to $config{wikistatedir}/commitlock: $!");
- if (! flock(
WIKI
LOCK, 1 | 4)) { # LOCK_SH | LOCK_NB to test
- close
WIKI
LOCK;
+ if (! flock(
COMMIT
LOCK, 1 | 4)) { # LOCK_SH | LOCK_NB to test
+ close
COMMIT
LOCK;
return 0;
}
- close
WIKI
LOCK;
+ close
COMMIT
LOCK;
return 1;
} #}}}