{"thread":{"id":"25841","subject":"[PATCH/RFC] gitweb: Go to DONE_REQUEST rather than DONE_GITWEB in die_error","startedAt":"2010-11-25T22:15:08Z","lastAt":"2010-11-25T22:15:08Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"156571","messageId":"1290723308-21685-1-git-send-email-jnareb@gmail.com","threadId":"25841","inReplyTo":null,"subject":"[PATCH/RFC] gitweb: Go to DONE_REQUEST rather than DONE_GITWEB in die_error","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2010-11-25T22:15:08Z","receivedAt":"2010-11-25T22:15:08Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"End the request after die_error finishes, rather than exiting gitweb\ninstance (perhaps wrapped like in ModPerl::Registry or gitweb.psgi\ncase).\n\nSigned-off-by: Jakub Narebski <jnareb@gmail.com>\n---\nShould bring no differences except for running gitweb in persistent\nenvironments natively, without wrapping; currently only FastCGI is\nsupported.\n\n gitweb/gitweb.perl |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 1d94718..bcd7c8a 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -1156,6 +1156,7 @@ sub run {\n \n \t\trun_request();\n \n+\tDONE_REQUEST:\n \t\t$post_dispatch_hook->()\n \t\t\tif $post_dispatch_hook;\n \t\t$first_request = 0;\n@@ -3679,7 +3680,7 @@ EOF\n \tprint \"</div>\\n\";\n \n \tgit_footer_html();\n-\tgoto DONE_GITWEB\n+\tgoto DONE_REQUEST\n \t\tunless ($opts{'-error_handler'});\n }\n \n-- \n1.7.3\n"}]}