]> Lady’s Gitweb - Gitweb/commit
gitweb: Use nonlocal jump instead of 'exit' in die_error
authorJakub Narebski <redacted>
Sat, 24 Apr 2010 13:56:13 +0000 (15:56 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commit9942474cf9d36f1bf24a061720b9a27f68291e977ea43330a9e1e85f2b535126
tree34ae2aa22b6bbce6c437a77913cb8907bf75bb5577a5195e7cd30f7a159e8e0c
parentfbc3414a4451668c69325c4f048e60264ad9e527332f4609988ec1f8a461640c
gitweb: Use nonlocal jump instead of 'exit' in die_error

Use 'goto DONE' in place of 'exit' to end request processing in
die_error() subroutine.  While at it, do not end gitweb with 'exit'.

This would make it easier in the future to add support or improve
support for persistent environments such as FastCGI and mod_perl.
It would also make it easier to make use of die_error() as an error
handler (for fatalsToBrowser).

Perl 5 allows non-local jumps; the restriction is that you cannot jump
into a scope.

Signed-off-by: Jakub Narebski <redacted>
Acked-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.246324 seconds and 4 git commands to generate.