package MediaWords::MyFCgiManager;
use Moose;
use namespace::autoclean;
use FCGI::ProcManager;

has '_fcgi_procmanager' => (
    is => 'ro',
    isa => 'FCGI::ProcManager',
    handles => qr/.*/,
);

around BUILDARGS => sub {
    my $orig = shift;
    my $class = shift;
    my $ret = $class->$orig(_fcgi_procmanager => FCGI::ProcManager->new(@_));

    $ret->{die_timeout} = 2;

    return $ret;
};

no Moose;
__PACKAGE__->meta->make_immutable;

package MediaWords::MyFCgiManager;
use Moose;
use namespace::autoclean;
use FCGI::ProcManager;
use Modern::Perl '2012';
use MediaWords::CommonLibs;

has '_fcgi_procmanager' => (
    is => 'ro',
    isa => 'FCGI::ProcManager',
    handles => qr/.*/,
);

around BUILDARGS => sub {
    my $orig = shift;
    my $class = shift;
    my $ret = $class->$orig(_fcgi_procmanager => FCGI::ProcManager->new(@_));

    $ret->{_fcgi_procmanager}->{die_timeout} = 2;

    return $ret;
};

no Moose;
__PACKAGE__->meta->make_immutable;

Fix die_timeout to be 2 seconds.
Fix die_timeout to be 2 seconds.

