]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki
web commit by joey: thoughts on conflict resolution, gobbing, locking
[ikiwiki.git] / ikiwiki
diff --git a/ikiwiki b/ikiwiki
index 40356f1d35426acd67e96d38a3fb69d9e65aa47c..e218979d1068ecfebfe0b6134a8b921fe788c688 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -420,6 +420,10 @@ sub lockwiki () { #{{{
        }
 } #}}}
 
+sub unlockwiki () { #{{{
+       close WIKILOCK;
+} #}}}
+
 sub loadindex () { #{{{
        open (IN, "$config{srcdir}/.ikiwiki/index") || return;
        while (<IN>) {
@@ -1130,6 +1134,8 @@ sub cgi_editpage ($$) { #{{{
                        # presumably the commit will trigger an update
                        # of the wiki
                        rcs_commit($message);
+                       # prevent deadlock with post-commit hook
+                       unlockwiki();
                }
                else {
                        loadindex();