diff options
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |