[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.5-233-g3f0b78e

Emmanuel Lacour elacour at bestpractical.com
Mon Oct 5 08:23:02 EDT 2009


The branch, 3.8-trunk has been updated
       via  3f0b78ef165dcbae5e2b6a32be0d088968cd11ae (commit)
      from  4f451bb02c9c509d72fd0f5f4de089ce7f108791 (commit)

Summary of changes:
 bin/mason_handler.fcgi.in |    4 ++++
 bin/mason_handler.scgi.in |    4 ++++
 bin/mason_handler.svc.in  |    4 ++++
 3 files changed, 12 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 3f0b78ef165dcbae5e2b6a32be0d088968cd11ae
Author: Emmanuel Lacour <elacour at home-dn.net>
Date:   Mon Oct 5 14:20:35 2009 +0200

    Init $Handler after RT::Init in mason_handler scripts as in webmux.pl $Handler
    init is now in handler method which is called only under mod_perl (closes: #13920)

diff --git a/bin/mason_handler.fcgi.in b/bin/mason_handler.fcgi.in
index 303376e..48155f2 100755
--- a/bin/mason_handler.fcgi.in
+++ b/bin/mason_handler.fcgi.in
@@ -58,6 +58,10 @@ require (dirname(__FILE__) . '/webmux.pl');
 require CGI::Fast;
 
 RT::Init();
+$Handler ||= RT::Interface::Web::Handler->new(
+    RT->Config->Get('MasonParameters')
+);
+
 
 while ( my $cgi = CGI::Fast->new ) {
     # the whole point of fastcgi requires the env to get reset here..
diff --git a/bin/mason_handler.scgi.in b/bin/mason_handler.scgi.in
index 795b9c3..a853529 100755
--- a/bin/mason_handler.scgi.in
+++ b/bin/mason_handler.scgi.in
@@ -57,6 +57,10 @@ require (dirname(__FILE__) . '/webmux.pl');
 require CGI;
 
 RT::Init();
+$Handler ||= RT::Interface::Web::Handler->new(
+    RT->Config->Get('MasonParameters')
+);
+
 
 my $cgi = CGI->new;
 if ( ( !$Handler->interp->comp_exists( $cgi->path_info ) )
diff --git a/bin/mason_handler.svc.in b/bin/mason_handler.svc.in
index 8abd27e..d7e68b3 100755
--- a/bin/mason_handler.svc.in
+++ b/bin/mason_handler.svc.in
@@ -225,6 +225,10 @@ warn "Begin listening on $ENV{'FCGI_SOCKET_PATH'}\n";
 require CGI::Fast;
 
 RT::Init();
+$Handler ||= RT::Interface::Web::Handler->new(
+    RT->Config->Get('MasonParameters')
+);
+
 
 # Response loop
 while( my $cgi = CGI::Fast->new ) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list