X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/b2aa990f7bf34e3bcecd8b801da17c4a2c0ea6a1abc46d163e8c9ed110261c60..b0ed4835e5b509f56bbc86a3bb4559eb4c765d8b7a3d760cba6cb1fb1eee93c0:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 0ca1f7c..d3aa80f 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -1110,6 +1110,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