From ebc758fb5c94f7441827b8f8201ff3170addcbc7 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sun, 13 Mar 2011 22:04:32 -0700 Subject: Bug 637977: Re-setup CGI.pm global variables on every request under mod_perl, which prevents CGI.pm from generating URLs with semicolons in them instead of ampersands. r=glob, a=mkanat --- Bugzilla.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla.pm') diff --git a/Bugzilla.pm b/Bugzilla.pm index 2c07ea722..9d7199ff6 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -647,6 +647,11 @@ sub _cleanup { $dbh->disconnect; } undef $_request_cache; + + # These are both set by CGI.pm but need to be undone so that + # Apache can actually shut down its children if it needs to. + $SIG{TERM} = 'DEFAULT' if $SIG{TERM} eq 'IGNORE'; + $SIG{PIPE} = 'DEFAULT' if $SIG{PIPE} eq 'IGNORE'; } sub END { -- cgit v1.2.1