]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/UserInfo.pm
* Add toggle plugin.
[ikiwiki.git] / IkiWiki / UserInfo.pm
index 34f05203a10f2367f7f583ce7d6365da1cd8c6d0..fd823c963b0e8a27994304b7a3ca1ba6686e26c7 100644 (file)
@@ -150,6 +150,8 @@ sub send_commit_mails ($$$@) { #{{{
                setsid() or error("Can't start a new session: $!");
                open STDERR, '>&STDOUT' or error("Can’t dup stdout: $!");
 
+               unlockwiki(); # don't need to keep a lock on the wiki
+
                eval q{use Mail::Sendmail};
                error($@) if $@;
                foreach my $email (@email_recipients) {
@@ -160,6 +162,8 @@ sub send_commit_mails ($$$@) { #{{{
                                Message => $template->output,
                        ) or error("Failed to send update notification mail");
                }
+
+               exit 0; # daemon process done
        }
 } #}}}