X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/b93e189934c5f3abe39db070f0d9ed459007ddcf..22f3f422af7e25460fbfe92de54e3fa45bbc7ff7:/ikiwiki?ds=sidebyside diff --git a/ikiwiki b/ikiwiki index 40356f1d3..e218979d1 100755 --- a/ikiwiki +++ b/ikiwiki @@ -420,6 +420,10 @@ sub lockwiki () { #{{{ } } #}}} +sub unlockwiki () { #{{{ + close WIKILOCK; +} #}}} + sub loadindex () { #{{{ open (IN, "$config{srcdir}/.ikiwiki/index") || return; while () { @@ -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();