Merge branch 'jn/gitweb-return-or-exit-cleanup'

* jn/gitweb-return-or-exit-cleanup:
  gitweb: Return or exit after done serving request

Conflicts:
	gitweb/gitweb.perl
maint
Junio C Hamano 2010-06-22 09:45:22 -07:00
commit 5bfd53629e
1 changed files with 9 additions and 0 deletions

View File

@ -1109,6 +1109,15 @@ sub run {

run();

if (defined caller) {
# wrapped in a subroutine processing requests,
# e.g. mod_perl with ModPerl::Registry, or PSGI with Plack::App::WrapCGI
return;
} else {
# pure CGI script, serving single request
exit;
}

## ======================================================================
## action links