port our RT.pm.in changes to RT.pm in RT4
authorIvan Kohler <ivan@freeside.biz>
Wed, 8 Aug 2012 06:51:25 +0000 (23:51 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 8 Aug 2012 06:51:25 +0000 (23:51 -0700)
rt/lib/RT.pm

index 063f7f7..b375c43 100644 (file)
@@ -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