X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gitweb%2Fgitweb.perl;h=9446376535b1790c2400cd5bbc1e12f1a8b8f7c9;hb=a278aa61a474eced7b676f3378dcd0f4ec5db4fc;hp=9e5e0bf3ee6a86df6329da145f7f597e7abf491f;hpb=919e06b2288270f47c55759e8810b87f74609caf;p=git.git diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 9e5e0bf3e..944637653 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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