diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-21 09:12:20 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-21 09:12:20 +0000 |
commit | 67bc7ca8a117ce06506d8a38f58b573456406669 (patch) | |
tree | 9e69adac4b7a9fd04a7e07e36938279fed8c51ed /IkiWiki.pm | |
parent | 160568ca2ab3bb32a2e19f3a20d17615ed693e9e (diff) | |
download | ikiwiki-67bc7ca8a117ce06506d8a38f58b573456406669.tar ikiwiki-67bc7ca8a117ce06506d8a38f58b573456406669.tar.gz |
doh!
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 6 |
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; } #}}} |