aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index c8d959edd..dcb68bca6 100644
--- 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(WIKILOCK, 1 | 4)) { # LOCK_SH | LOCK_NB to test
- close WIKILOCK;
+ if (! flock(COMMITLOCK, 1 | 4)) { # LOCK_SH | LOCK_NB to test
+ close COMMITLOCK;
return 0;
}
- close WIKILOCK;
+ close COMMITLOCK;
return 1;
} #}}}