summaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-11-11 20:48:02 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-11-11 20:48:02 -0500
commitecd4f0ee553cc3e11491f236763d6cc7cd6dd8a1 (patch)
tree6e70ee141d13b0822adcb7c86c8122b25fbb8660 /IkiWiki.pm
parent521d76e5082b5d32bf1fe85b55d85f54f2030090 (diff)
make unlockwiki drop the cgilock
This is necessary so that things that fork to the background, like pinger, and inline ping, don't block other cgis from running. Note that websetup also calls unlockwiki, before refreshing / rebuilding the wiki. It makes perfect sense for that not to block other cgis.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index d949566d8..5e21e7090 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -1295,6 +1295,7 @@ sub lockwiki () { #{{{
} #}}}
sub unlockwiki () { #{{{
+ POSIX::close($ENV{IKIWIKI_CGILOCK_FD}) if exists $ENV{IKIWIKI_CGILOCK_FD};
return close($wikilock) if $wikilock;
return;
} #}}}