summaryrefslogtreecommitdiff
path: root/rt/lib
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-08-07 23:51:25 -0700
committerIvan Kohler <ivan@freeside.biz>2012-08-07 23:51:25 -0700
commit21b2bb8d5920e3aee36fd00bfcab1835ec7214ea (patch)
tree41b74a684bb188b3869752992e70cdc00f3f5d32 /rt/lib
parent94c1d035193d1eabb1820e62bce96438f11f870a (diff)
port our RT.pm.in changes to RT.pm in RT4
Diffstat (limited to 'rt/lib')
-rw-r--r--rt/lib/RT.pm7
1 files changed, 6 insertions, 1 deletions
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