]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb/Makefile: fix typo in gitweb.min.css rule
[Gitweb] / gitweb.perl
index 0ca1f7cd8a52505d9776bc52cea5918c9c23a73a4c48909726b36c6093f5a9cc..d3aa80fc318e7254723010c60d8f23e2e77f96c7fc39694c02b39905e5a14659 100755 (executable)
@@ -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
 
This page took 0.047938 seconds and 4 git commands to generate.