Patch to localize die/warn handlers under mod_perl

Please consider this very simple patch to RT 2.0.15 that localizes the
warn and die handlers so normal error handling is restored at the end of
each mod_perl-served RT request.

It looked to me like it would apply to 3.x too but I didn’t attempt it.
A similar change might make sense for other environments (e.g, fast cgi)?



diff -ur rt-2-0-15-gold/bin/ rt-2-0-15/bin/
— rt-2-0-15-gold/bin/ 2002-07-12 21:19:54.000000000 -0700
+++ rt-2-0-15/bin/ 2003-05-16 01:55:29.000000000 -0700
@@ -126,6 +126,9 @@

sub handler {
($r) = @_;

  • local $SIG{WARN};

  • local $SIG{DIE};