diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-17 18:34:33 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-17 18:34:33 +0000 |
commit | 7fca2e01f888ba211d46602ba56bee9faa7d150a (patch) | |
tree | 16c79d10062dd0a4b0520b816192c4589c213d85 | |
parent | 2aa59621153fcba1d72d7c7688037f1fdfa7f95f (diff) |
unlock wiki during svn commit to prevent deadlock with post-commit hook
-rwxr-xr-x | ikiwiki | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |