summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-07-06 08:33:25 +0200
committermkanat%bugzilla.org <>2006-07-06 08:33:25 +0200
commit1369edc78cf84ba2a3cebec0a5c7ae519175de9d (patch)
tree81506588c5cf3ce70b0813faf0c00d499b4a09e9 /Bugzilla.pm
parent704d78caa8d010776e646b3d3a26ef52e29cbbb4 (diff)
downloadbugzilla-1369edc78cf84ba2a3cebec0a5c7ae519175de9d.tar.gz
bugzilla-1369edc78cf84ba2a3cebec0a5c7ae519175de9d.tar.xz
Bug 343361: die_with_dignity is useless inside of Bugzilla::CGI
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, r=colin, a=myk
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index 0d6e6af7d..e22ab97bf 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -61,6 +61,19 @@ use constant SHUTDOWNHTML_EXIT_SILENTLY => [
# Global Code
#####################################################################
+# The following subroutine is for debugging purposes only.
+# Uncommenting this sub and the $::SIG{__DIE__} trap underneath it will
+# cause any fatal errors to result in a call stack trace to help track
+# down weird errors.
+#
+#sub die_with_dignity {
+# use Carp ();
+# my ($err_msg) = @_;
+# print $err_msg;
+# Carp::confess($err_msg);
+#}
+#$::SIG{__DIE__} = \&Bugzilla::die_with_dignity;
+
# Some environment variables are not taint safe
delete @::ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};