[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-163-g8105bc6

Jesse Vincent jesse at bestpractical.com
Wed Sep 29 21:42:28 EDT 2010


The branch, 3.8-trunk has been updated
       via  8105bc6c556e429915a2e566bfaa7661891e2115 (commit)
      from  cae63fc21aef7e836324cb2b969117b838abaf33 (commit)

Summary of changes:
 bin/fastcgi_server.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 8105bc6c556e429915a2e566bfaa7661891e2115
Author: Tom Lanyon <tom at netspot.com.au>
Date:   Fri Aug 27 20:58:07 2010 +0930

    Logic bug in bin/fastcgi_server; allow use of --port.
    
    Patch below (against 3.8-trunk) fixes bin/fastcgi_server --port <foo>.
    Without this, it always listens on $RT::VarPath/fastcgi.sock.
    
    Regards,
    Tom

diff --git a/bin/fastcgi_server.in b/bin/fastcgi_server.in
index bf3fdcc..63df548 100644
--- a/bin/fastcgi_server.in
+++ b/bin/fastcgi_server.in
@@ -198,7 +198,7 @@ $ENV{'RT_WEBMUX_HEAVY_LOAD'} = 1;
 use File::Basename;
 require (dirname(__FILE__) .'/webmux.pl');
 
-unless ( $opt{'socket'} && $opt{'port'} ) {
+unless ( $opt{'socket'} || $opt{'port'} ) {
     require File::Spec;
     $opt{'socket'} = File::Spec->catfile($RT::VarPath, 'fastcgi.sock');
 }

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


More information about the Rt-commit mailing list