NAME

FCGI::ProcManager - functions for managing FastCGI applications.

SYNOPSIS

# In its simplest form.
use CGI::Fast;
use FCGI::ProcManager;
my $proc_manager = FCGI::ProcManager->new({n_processes=>10});
$proc_manager->manage();
while (my $cgi = CGI::Fast->new()) {
  #...

DESCRIPTION

FCGI::ProcManager is used to serve as a FastCGI process manager. The parent uses fork(2) and wait(2) to manage a set of FastCGI application servers. more later.

METHODS

new

manage

global
() manage(int processes_to_spawn)

DESCRIPTION:

When this is called by a FastCGI script to manage application servers.

pre_manage_init

post_manage_init

pre_dispatch

post_dispatch

write_pid_file

remove_pid_file

gen_mutator

n_processes

want_to_die

no_signals

pid_fname

state

register_sig_handler

unregister_sig_handler

sig_method

warn

exit

abort

BUGS

No known bugs, but this does not mean no bugs exist.

SEE ALSO

FCGI.

COPYRIGHT

FCGI-ProcManager - A Perl FCGI Process Manager
Copyright (c) 2000, FundsXpress Financial Network, Inc.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

BECAUSE THIS LIBRARY IS LICENSED FREE OF CHARGE, THIS LIBRARY IS
BEING PROVIDED "AS IS WITH ALL FAULTS," WITHOUT ANY WARRANTIES
OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT
LIMITATION, ANY IMPLIED WARRANTIES OF TITLE, NONINFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, AND THE
ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY,
AND EFFORT IS WITH THE YOU.  See the GNU Lesser General Public
License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA