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
This commit is contained in:
commit
5bfd53629e
@ -1109,6 +1109,15 @@ sub run {
|
|||||||
|
|
||||||
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
|
## action links
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user