X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FFastCGI.pm;h=30bb3a5aa1b979dc370ffe15b904f24519131278;hb=1c1bb322fd27968c04987a1b65c0144a99ba7284;hp=96b75df04b8bd5c60432140cac24c23ff861eb27;hpb=439bc59c795c896db3b43daaff4e10c3f9741b1a;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine/FastCGI.pm b/lib/Catalyst/Engine/FastCGI.pm index 96b75df..30bb3a5 100644 --- a/lib/Catalyst/Engine/FastCGI.pm +++ b/lib/Catalyst/Engine/FastCGI.pm @@ -113,6 +113,7 @@ sub run { if ($listen) { $options->{manager} ||= "FCGI::ProcManager"; $options->{nproc} ||= 1; + $options->{proc_title} ||= "perl-fcgi-pm [$class]"; $self->daemon_fork() if $options->{detach}; @@ -123,6 +124,7 @@ sub run { { n_processes => $options->{nproc}, pid_fname => $options->{pidfile}, + pm_title => $options->{proc_title}, } ); @@ -157,6 +159,10 @@ sub run { sub write { my ( $self, $c, $buffer ) = @_; + # ->write will be called once with the body, even in a redirect (and + # in that case, the body is undef) + $buffer = '' if !defined $buffer; + unless ( $self->_prepared_write ) { $self->prepare_write($c); $self->_prepared_write(1);