From: Tomas Doran Date: Sat, 28 Nov 2009 12:32:31 +0000 (+0000) Subject: Fix the FCGI issue locally using the new Catalyst script stuff.. X-Git-Tag: 0.000002~10^2^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=75f6106d28decbec4ccc29a39e460f3ecb7a5639;p=catagits%2FGitalist.git Fix the FCGI issue locally using the new Catalyst script stuff.. --- diff --git a/lib/Gitalist/Script/FastCGI.pm b/lib/Gitalist/Script/FastCGI.pm new file mode 100644 index 0000000..778760c --- /dev/null +++ b/lib/Gitalist/Script/FastCGI.pm @@ -0,0 +1,15 @@ +package Gitalist::Script::FastCGI; +use Moose; +use namespace::autoclean; + +extends 'Catalyst::Script::FastCGI'; + +# Only exists so that this horrible hack can happen.. +# This should be in FCGI.pm, see: +# http://github.com/broquaint/Gitalist/issues#issue/9 +# http://rt.cpan.org/Public/Bug/Display.html?id=50972 +# http://goatse.co.uk/~bobtfish/Gitalist/script/gitalist.fcgi/commitdiff?p=FCGI;h=6bfbe42bbc9a29f4befee56d6dd7077922cae50e +use FCGI; +sub FCGI::Stream::FILENO { -2 } + +__PACKAGE__->meta->make_immutable;