Skip to content

Commit

Permalink
Merge pull request #535 from ianburrell/fcgi-manager
Browse files Browse the repository at this point in the history
Support setting "manager" for Plack::Handler::FCGI in single-process mode
  • Loading branch information
miyagawa committed Nov 19, 2015
2 parents 6222d08 + 2725e6f commit 0a8eea4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Plack/Handler/FCGI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,16 @@ sub run {

# detach *before* the ProcManager inits
$self->daemon_detach if $self->{daemonize};

$proc_manager->pm_manage;
}
elsif ($self->{daemonize}) {
$self->daemon_detach;
}
} elsif (blessed $self->{manager}) {
$proc_manager = $self->{manager};
}

$proc_manager && $proc_manager->pm_manage;

while ($request->Accept >= 0) {
$proc_manager && $proc_manager->pm_pre_dispatch;

Expand Down

0 comments on commit 0a8eea4

Please sign in to comment.