The mod_perl CGI.pm fix caused Bugzilla.pm to throw a warning on every

invocation that didn't have $SIG{TERM} and $SIG{PIPE} set (for example,
during command-line scripts).


git-svn-id: svn://10.0.0.236/trunk@262041 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2011-03-14 05:19:51 +00:00
parent da5eb7494c
commit e8e0c96909
2 changed files with 4 additions and 3 deletions

View File

@@ -1 +1 @@
7751
7752

View File

@@ -650,8 +650,9 @@ sub _cleanup {
# 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';
foreach my $signal (qw(TERM PIPE)) {
$SIG{$signal} = 'DEFAULT' if $SIG{$signal} && $SIG{$signal} eq 'IGNORE';
}
}
sub END {