Skip to content

Instantly share code, notes, and snippets.

@plu
Created June 25, 2010 09:00
Show Gist options
  • Save plu/452623 to your computer and use it in GitHub Desktop.
Save plu/452623 to your computer and use it in GitHub Desktop.
diff --git a/lib/FCGI/Engine/Core.pm b/lib/FCGI/Engine/Core.pm
index 19bb392..c58b76d 100644
--- a/lib/FCGI/Engine/Core.pm
+++ b/lib/FCGI/Engine/Core.pm
@@ -173,6 +173,10 @@ sub run {
$proc_manager->manage;
}
+ elsif ( $self->nproc > 1 ) {
+ $proc_manager = $self->create_proc_manager( %addtional_options );
+ $proc_manager->manage;
+ }
while ($request->Accept() >= 0) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment