From 21b2bb8d5920e3aee36fd00bfcab1835ec7214ea Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 7 Aug 2012 23:51:25 -0700 Subject: [PATCH] port our RT.pm.in changes to RT.pm in RT4 --- rt/lib/RT.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rt/lib/RT.pm b/rt/lib/RT.pm index 063f7f719..b375c433a 100644 --- a/rt/lib/RT.pm +++ b/rt/lib/RT.pm @@ -174,6 +174,8 @@ Create the Logger object and set up signal handlers. sub InitLogging { + my %arg = @_; + # We have to set the record separator ($, man perlvar) # or Log::Dispatch starts getting # really pissy, as some other module we use unsets it. @@ -309,11 +311,14 @@ sub InitLogging { )); } } - InitSignalHandlers(); + InitSignalHandlers(%arg); } sub InitSignalHandlers { + my %arg = @_; + return if $arg{'NoSignalHandlers'}; + # Signal handlers ## This is the default handling of warnings and die'ings in the code ## (including other used modules - maybe except for errors catched by -- 2.11.0