summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-17 18:34:33 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-17 18:34:33 +0000
commit7fca2e01f888ba211d46602ba56bee9faa7d150a (patch)
tree16c79d10062dd0a4b0520b816192c4589c213d85
parent2aa59621153fcba1d72d7c7688037f1fdfa7f95f (diff)
unlock wiki during svn commit to prevent deadlock with post-commit hook
-rwxr-xr-xikiwiki5
1 files changed, 5 insertions, 0 deletions
diff --git a/ikiwiki b/ikiwiki
index 40356f1d3..f918980dd 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -420,6 +420,10 @@ sub lockwiki () { #{{{
}
} #}}}
+sub lockwiki () { #{{{
+ close WIKILOCK;
+} #}}}
+
sub loadindex () { #{{{
open (IN, "$config{srcdir}/.ikiwiki/index") || return;
while (<IN>) {
@@ -1130,6 +1134,7 @@ sub cgi_editpage ($$) { #{{{
# presumably the commit will trigger an update
# of the wiki
rcs_commit($message);
+ unlock_wiki();
}
else {
loadindex();