From 7fca2e01f888ba211d46602ba56bee9faa7d150a Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 17 Mar 2006 18:34:33 +0000 Subject: [PATCH] unlock wiki during svn commit to prevent deadlock with post-commit hook --- ikiwiki | 5 +++++ 1 file changed, 5 insertions(+) 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 () { @@ -1130,6 +1134,7 @@ sub cgi_editpage ($$) { #{{{ # presumably the commit will trigger an update # of the wiki rcs_commit($message); + unlock_wiki(); } else { loadindex(); -- 2.26.2